Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When executes "waagent -deprovision" and input "Ctrl-C" at the "(y/n)?" choice, it raise exception.
Version-Release number of selected component (if applicable):
WALinuxAgent-2.2.0
RHEL Version: RHEL-7.3
How reproducible:
100%
Steps to Reproduce:
1. Prepare a VM with WALA-2.2.0 installed
2. Run "waagent -deprovision" and input "Ctrl-C" at the "(y/n)?" choice
# waagent -deprovision
...
Do you want to proceed (y/n)^C
Actual Result:
It raises exception, printed and logged into waagent.log:
Traceback (most recent call last):
File "/sbin/waagent", line 35, in <module>
agent.main()
File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 127, in main
agent.deprovision(force, deluser=False)
File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 86, in deprovision
deprovision_handler.run(force=force, deluser=deluser)
File "/usr/lib/python2.7/site-packages/azurelinuxagent/pa/deprovision/default.py", line 130, in run
confirm = read_input("Do you want to proceed (y/n)")
KeyboardInterrupt
2016/10/27 13:07:18.720680 ERROR Event: name=WALA, op=UnhandledError, message=Traceback (most recent call last):
File "/sbin/waagent", line 35, in <module>
agent.main()
File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 127, in main
agent.deprovision(force, deluser=False)
File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 86, in deprovision
deprovision_handler.run(force=force, deluser=deluser)
File "/usr/lib/python2.7/site-packages/azurelinuxagent/pa/deprovision/default.py", line 130, in run
confirm = read_input("Do you want to proceed (y/n)")
KeyboardInterrupt
Expect Result:
It doesn't raise exception. Just quit normally.
Additional Info:
None
Verified in WALinuxAgent-2.2.2 upstream.
Result: Fail
Steps: As description.
Actual result:
Print message: ERROR: handle_interrupt_signal() takes exactly 2 arguments (3 given)
Expect result:
Print message: Deprovision is interrupted.
Open new issue on github:
https://github.com/Azure/WALinuxAgent/issues/521
Description of problem: When executes "waagent -deprovision" and input "Ctrl-C" at the "(y/n)?" choice, it raise exception. Version-Release number of selected component (if applicable): WALinuxAgent-2.2.0 RHEL Version: RHEL-7.3 How reproducible: 100% Steps to Reproduce: 1. Prepare a VM with WALA-2.2.0 installed 2. Run "waagent -deprovision" and input "Ctrl-C" at the "(y/n)?" choice # waagent -deprovision ... Do you want to proceed (y/n)^C Actual Result: It raises exception, printed and logged into waagent.log: Traceback (most recent call last): File "/sbin/waagent", line 35, in <module> agent.main() File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 127, in main agent.deprovision(force, deluser=False) File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 86, in deprovision deprovision_handler.run(force=force, deluser=deluser) File "/usr/lib/python2.7/site-packages/azurelinuxagent/pa/deprovision/default.py", line 130, in run confirm = read_input("Do you want to proceed (y/n)") KeyboardInterrupt 2016/10/27 13:07:18.720680 ERROR Event: name=WALA, op=UnhandledError, message=Traceback (most recent call last): File "/sbin/waagent", line 35, in <module> agent.main() File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 127, in main agent.deprovision(force, deluser=False) File "/usr/lib/python2.7/site-packages/azurelinuxagent/agent.py", line 86, in deprovision deprovision_handler.run(force=force, deluser=deluser) File "/usr/lib/python2.7/site-packages/azurelinuxagent/pa/deprovision/default.py", line 130, in run confirm = read_input("Do you want to proceed (y/n)") KeyboardInterrupt Expect Result: It doesn't raise exception. Just quit normally. Additional Info: None