Investigate issue with devops sudo handler

Bug #1620680 reported by Maksym Strukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Alexey Stepanov
Mitaka
In Progress
Medium
Fuel QA Team

Bug Description

https://custom-ci.infra.mirantis.net/job/10.0.custom.system_test/1202/console
For some reason check_call(ip=..., sudo=True, command='shutdown +1') inside `def warm_shutdown_nodes` doesn't work.

Need to investigate why.
Workaround is to add `sudo` to command

Changed in fuel:
importance: Undecided → Medium
milestone: none → 9.1
status: New → Confirmed
Maksym Strukov (unbelll)
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Alexey Stepanov (astepanov-m)
Revision history for this message
Alexey Stepanov (astepanov-m) wrote :

Current status:
Devops successfully receives sudo flag from ssh manager. On fuel-devops 2.9.23 spike is used, on 3.0.2 standard API is used.
Investigating on devops side.

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Alexey Stepanov (astepanov-m) wrote :

>>> ssh.execute('id', verbose=True)
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),111(lxd),115(lpadmin),116(sambashare),117(libvirtd)
2016-09-12 10:15:20 - INFO - ssh_client.py:853 -- 'id' execution results:
Exit code: EX_OK<0(0x00)>
STDOUT:
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),111(lxd),115(lpadmin),116(sambashare),117(libvirtd)
STDERR:

ExecResult(cmd='id', stdout=['uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),111(lxd),115(lpadmin),116(sambashare),117(libvirtd)\n'], stderr=[], exit_code=EX_OK<0(0x00)>)
>>> with ssh.sudo(True):ssh.execute('id', verbose=True)
uid=0(root) gid=0(root) groups=0(root)
[sudo] password for ubuntu: 2016-09-12 10:15:43 - INFO - ssh_client.py:853 -- 'id' execution results:
Exit code: EX_OK<0(0x00)>
STDOUT:
uid=0(root) gid=0(root) groups=0(root)
STDERR:
[sudo] password for ubuntu:
ExecResult(cmd='id', stdout=['uid=0(root) gid=0(root) groups=0(root)\n'], stderr=['[sudo] password for ubuntu: '], exit_code=EX_OK<0(0x00)>)

Need to check detaily on CI with dedicated test

Roman Vyalov (r0mikiam)
Changed in fuel:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.