settingsLogin | Registersettings

[openstack-dev] AttributeError: 'StackManager' object has no attribute 'event'

0 votes

Hi Team,

I am trying below code but the moment I run the code I am getting error.

try:
evntsdata = hc.stacks.event.list(stackname=stackname)

evntsdata = hc.stacks.events.list(stack_name)

if evntsdata[-1] == 'UPDATEINPROGRESS':
loopcontinue = True
while loopcontinue:
evntsdata = (hc.stacks.event.list(stackname)[0]).split(" ")
if (evntsdata[-1] == 'UPDATE
COMPLETE'):
loopcontinue = False
print(str(timestamp()) + " " + "Stack Update is Completed!" + ' - ' +
evntsdata[-3] + ' = ' + evntsdata[-1])
else:
print(str(timestamp()) + " " + "Stack Update in Progress!" + ' - ' +
evntsdata[-3] + ' = ' + evntsdata[-1])
time.sleep(10)
elif error_state == 'No updates are to be performed':
exit(0)

except AttributeError as e:
print(str(timestamp()) + " " + "ERROR: Stack Update Failure")
raise

ERROR: Traceback (most recent call last):
File
"C:/Users/hekh0517/PycharmProjects/untitled1/testingBotoStackUpdate.py",
line 86, in
evntsdata = hc.stacks.event.list(stackname=stackname)
AttributeError: 'StackManager' object has no attribute 'event'

I dont know why this error occurs


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked May 26, 2017 in openstack-dev by Heenashree_Khandelwa (140 points)  
...