Public bug reported:

on Ubuntu 16.04 environment.

I use cloud-init 0.7.7~bzr1212-0ubuntu1.

I use ConfigDrive datasource by OpenStack.

I find a bug on datasource driver overwrite method: "def
check_instance_id(self, sys_cfg)"

__init__.py is def check_instance_id(self, sys_cfg)

but
DataSourceConfigDrive.py  is def check_instance_id(self)

This format will raise the argment error in python3.


Before:(ConfigDrive is Error)
root@new-conoha:/var/lib/cloud/data# grep -r check_instance_id  
/usr/lib/python3/dist-packages/cloudinit/sources/*.py
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py:    
def check_instance_id(self):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceNoCloud.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py:    def 
check_instance_id(self, sys_cfg):


I have rewritten as follows.

After:(ConfigDrive was Done)
root@new-conoha:/var/lib/cloud/data# grep -r check_instance_id  
/usr/lib/python3/dist-packages/cloudinit/sources/*.py
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py:    
def check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceNoCloud.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py:    def 
check_instance_id(self, sys_cfg):
/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py:    def 
check_instance_id(self, sys_cfg):

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cloud-init configdrive openstack

** Patch added: "DataSourceConfigDrive-argment.patch"
   
https://bugs.launchpad.net/bugs/1580455/+attachment/4660419/+files/DataSourceConfigDrive-argment.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1580455

Title:
  ConfigDrive datasource "check_instance_id()" argments fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1580455/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to