[Openstack] AttributeError: "virDomain instance has no attribute 'reset'"

Jay Pipes jaypipes at gmail.com
Fri Jun 22 16:13:07 UTC 2012


That's pretty much what I understood based on a conversation with Vish 
on IRC the other day. It's caused me to pretty much give up on 11.10 for 
modern OpenStack (Nova) installs.

-jay

On 06/22/2012 01:23 AM, Vaze, Mandar wrote:
> Found this bug (albeit for Fedora 16)
> https://bugs.launchpad.net/nova/+bug/1011863
> <https://bugs.launchpad.net/nova/+bug/1011863>
>
> I’ve updated the bug with my details
>
> Does that mean Folsom won’t be supported on Ubuntu 11.10 ?
>
> -Mandar
>
> *From:*openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net
> [mailto:openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net]
> *On Behalf Of *Vaze, Mandar
> *Sent:* Friday, June 22, 2012 9:41 AM
> *To:* Vishvananda Ishaya
> *Cc:* openstack at lists.launchpad.net
> *Subject:* Re: [Openstack] AttributeError: "virDomain instance has no
> attribute 'reset'"
>
> Vish,
>
> I’m running on Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64)
>
> When I tried to upgrade I got the following message
>
> libvirt-bin is already the newest version.
>
> libvirt0 is already the newest version.
>
> python-libvirt is already the newest version.
>
> Which package should I upgrade/install ?
>
> Thanks,
>
> -Mandar
>
> *From:*Vishvananda Ishaya [mailto:vishvananda at gmail.com]
> <mailto:[mailto:vishvananda at gmail.com]>
> *Sent:* Friday, June 22, 2012 12:13 AM
> *To:* Vaze, Mandar
> *Subject:* Re: AttributeError: "virDomain instance has no attribute 'reset'"
>
> the reset command was only recently added to libvirt, so your version is
> probably just to old. We have discussed adding a fallback of shutting
> down and restarting the domain if reset is not defined, but no one has
> implemented it yet.
>
> Vish
>
> On Jun 21, 2012, at 5:56 AM, Vaze, Mandar wrote:
>
> Vish,
>
> I recently merged my code with master after a few weeks.
>
> Now I’m getting the error mentioned in the subject line during reboot.
>
> I looked at the history and this change is done in the following commit
> by you.
>
> https://github.com/openstack/nova/commit/ae878fc8b9761d099a4145617e4a48cbeb390623
>
> I also realized that you have defined reset() method in fakelibvirt for
> testing - so may be tests pass OK.
>
> I’m using libvirt_type=kvm
>
> Do I need to update any library (python or otherwise) for this change ?
>
> Any other suggestions to troubleshoot this ?
>
> Thanks,
>
> -Mandar
>
> Here is relevant snippet from my debug session :
>
>>  /opt/stack/nova/nova/virt/libvirt/connection.py(847)_hard_reboot()
>
> -> virt_dom.reset(0)
>
> (Pdb) dir(virt_dom)
>
> ['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc', '__del__', '__doc__',
> '__init__', '__module__', '_conn', '_o', 'abortJob', 'attachDevice',
> 'attachDeviceFlags', 'autostart', 'blkioParameters', 'blockInfo',
> 'blockPeek', 'blockStats', 'connect', 'coreDump', 'create',
> 'createWithFlags', 'destroy', 'detachDevice', 'detachDeviceFlags',
> 'hasCurrentSnapshot', 'hasManagedSaveImage', 'info', 'injectNMI',
> 'interfaceStats', 'isActive', 'isPersistent', 'isUpdated', 'jobInfo',
> 'managedSave', 'managedSaveRemove', 'maxMemory', 'maxVcpus',
> 'memoryParameters', 'memoryPeek', 'memoryStats', 'migrate', 'migrate2',
> 'migrateSetMaxDowntime', 'migrateSetMaxSpeed', 'migrateToURI',
> 'migrateToURI2', 'name', 'openConsole', 'pinVcpu', 'reboot', 'resume',
> 'revertToSnapshot', 'save', 'schedulerParameters',
> 'schedulerParametersFlags', 'schedulerType', 'screenshot',
> 'setAutostart', 'setBlkioParameters', 'setMaxMemory', 'setMemory',
> 'setMemoryFlags', 'setMemoryParameters', 'setSchedulerParameters',
> 'setSchedulerParametersFlags', 'setVcpus', 'setVcpusFlags', 'shutdown',
> 'snapshotCreateXML', 'snapshotCurrent', 'snapshotListNames',
> 'snapshotLookupByName', 'snapshotNum', 'state', 'suspend', 'undefine',
> 'updateDeviceFlags', 'vcpus', 'vcpusFlags']
>
> (Pdb) type( virt_dom)
>
> <type 'instance'>
>
> (Pdb) type(virt_dom)
>
> <type 'instance'>
>
> (Pdb) n
>
> AttributeError: "virDomain instance has no attribute 'reset'"
>
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest
> confidence for the sole use of the addressee and may contain legally
> privileged, confidential, and proprietary data. If you are not the
> intended recipient, please advise the sender by replying promptly to
> this email and then delete and destroy this email and any attachments
> without any further use, copying or forwarding
>
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest
> confidence for the sole use of the addressee and may contain legally
> privileged, confidential, and proprietary data. If you are not the
> intended recipient, please advise the sender by replying promptly to
> this email and then delete and destroy this email and any attachments
> without any further use, copying or forwarding
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp




More information about the Openstack mailing list