[Bug 1691428] Re: LXDAPIException: json: cannot unmarshal bool into Go value of type string when using config-drive
James Page
james.page at ubuntu.com
Wed May 24 08:14:04 UTC 2017
Deployed and verified ability to launch config-drive enabled instances
under zesty proposed - package version '15.0.1-0ubuntu1.1':
# apt-cache policy nova-compute-lxd
nova-compute-lxd:
Installed: 15.0.1-0ubuntu1.1
Candidate: 15.0.2.dev1.201705231139.zesty-0ubuntu1
Version table:
15.0.2.dev1.201705231139.zesty-0ubuntu1 500
500 http://ppa.launchpad.net/openstack-ubuntu-testing/ocata/ubuntu zesty/main amd64 Packages
*** 15.0.1-0ubuntu1.1 500
500 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 Packages
100 /var/lib/dpkg/status
15.0.1-0ubuntu1 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
** Tags removed: verification-needed verification-newton-done verification-ocata-needed
** Tags added: verfication-done
** Tags removed: verfication-done
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1691428
Title:
LXDAPIException: json: cannot unmarshal bool into Go value of type
string when using config-drive
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive newton series:
Fix Committed
Status in Ubuntu Cloud Archive ocata series:
Fix Committed
Status in Ubuntu Cloud Archive pike series:
Fix Released
Status in nova-lxd:
Fix Released
Status in nova-lxd package in Ubuntu:
Fix Released
Status in nova-lxd source package in Yakkety:
Fix Committed
Status in nova-lxd source package in Zesty:
Fix Committed
Status in nova-lxd source package in Artful:
Fix Released
Bug description:
[Impact]
Not possible to use the config-drive support (as currently in yakkety-proposed, zesty and artful)
[Test Case]
Deploy Nova-LXD based OpenStack Cloud
openstack server create --wait --image xenial --flavor m1.small --key-name testkey --nic net-id=XXXX --min 1 --max 1 --config-drive True xenial-config-drive
instance will go into ERROR state and fail to boot.
[Regression Potential]
Minimal; this feature has never worked correctly, the fix resolves and issue with passing the readonly flag for the config-drive device as a boolean rather than a string (as required by the LXD API).
[Original Bug Report]
When booting instances using the --config-drive flag, the instance fail to boot with the following error:
LXDAPIException: json: cannot unmarshal bool into Go value of type
string
nova-lxd is passing the 'readonly' flag as a boolean, not as a string,
and the LXD API fails to unmarshall it as a result.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1691428/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list