Can't compose kvm host with lvm storage on maas 2.8.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Medium
|
Unassigned | ||
readline (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Incomplete
|
Medium
|
Seyeong Kim |
Bug Description
[Impact]
I can't compose kvm host on maas 2.8.4 ( bionic)
I upgraded twisted and related component with pip but the symptom is the same.
MaaS 2.9.x in Focal works fine.
in 2.8.x, pexpect virsh vol-path should return [2] but returns [3]
[2]
/dev/maas_
[3]
2021-03-17 20:43:34 stderr: [error] Message: 'this is the result...\n'
2021-03-17 20:43:34 stderr: [error] Arguments: ([' ', '<3ef-46ca-
sometimes it fails in
def get_volume_
"""Return the path to the file from `pool` and `volume`."""
output = self.run(
return output.strip()
sometimes failes in
def get_machine_
# Check if we have a cached version of the XML.
# This is a short-lived object, so we don't need to worry about
# expiring objects in the cache.
if machine in self.xml:
return self.xml[machine]
# Grab the XML from virsh if we don't have it already.
output = self.run(
if output.
return None
# Cache the XML, since we'll need it later to reconfigure the VM.
return output
I assume that run function has issue.
Command line virsh vol-path and simple pepect python code works fine.
Any advice for this issue?
Thanks.
[Test Plan]
0) deploy Bionic and MAAS 2.8
1) Create file to be used as loopback device
sudo dd if=/dev/zero of=lvm bs=16000 count=1M
2) sudo losetup /dev/loop39 lvm
3) sudo pvcreate /dev/loop39
4) sudo vgcreate maas_data_vg /dev/loop39
5) Save below xml:
<pool type='logical'>
<name>maas_
<source>
<name>maas_
<format type='lvm2'/>
</source>
<target>
<path>/
</target>
</pool>
6) virsh pool-create maas_guest_
7) Add KVM host in MaaS
8) Attempt to compose a POD using storage pool maas_guest_lvm_vg
9) GUI will fail with:
Pod unable to compose machine: Unable to compose machine because: Failed talking to pod: Start tag expected, '<' not found, line 1, column 1 (<string>, line 1)
[Where problems could occer]
This patch is small peice of huge commit.
I tested by compiling test pkg with this patch. but actually it is kind of underlying library ( libreadline ), so It could affect to any application using libreadline.
e.g running command inside application by code can be affected.
[Other Info]
description: | updated |
description: | updated |
Changed in maas: | |
status: | New → Incomplete |
Changed in maas: | |
status: | In Progress → New |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 2.8.x |
Changed in readline (Ubuntu): | |
importance: | Undecided → Medium |
Changed in readline (Ubuntu Bionic): | |
importance: | Undecided → Medium |
tags: | added: sts-sponsor-ddstreet |
tags: |
added: sts-sponsor-dgadomski removed: sts-sponsor-ddstreet |
Hi, does the volume for the machine get created in the pool?