walinuxagent not found on Centos when cloud-init is started

Bug #1585193 reported by Antoine ROUAZE
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Invalid
Undecided
Unassigned

Bug Description

Hello,

I'm trying to use cloud-init on Centos and Azure, but the the Azure agent has a different name (waagent instead of walinuxagent) from Ubuntu and it is hardcoded in the source code. Do you plan to make a condition for RHEL distro ?

Here is the python stack :

May 24 14:22:50 test cloud-init: 2016-05-24 14:22:50,899 - util.py[DEBUG]: agent command '['service', 'walinuxagent', 'start']' failed.
May 24 14:22:50 test cloud-init: Traceback (most recent call last):
May 24 14:22:50 test cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceAzure.py", line 166, in get_data
May 24 14:22:50 test cloud-init: invoke_agent(mycfg['agent_command'])
May 24 14:22:50 test cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceAzure.py", line 400, in invoke_agent
May 24 14:22:50 test cloud-init: util.subp(cmd, shell=(not isinstance(cmd, list)))
May 24 14:22:51 test cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 1539, in subp
May 24 14:22:51 test cloud-init: cmd=args)
May 24 14:22:51 test cloud-init: ProcessExecutionError: Unexpected error while running command.
May 24 14:22:51 test cloud-init: Command: ['service', 'walinuxagent', 'start']
May 24 14:22:51 test cloud-init: Exit code: 6
May 24 14:22:51 test cloud-init: Reason: -
May 24 14:22:51 test cloud-init: Stdout: ''
May 24 14:22:51 test cloud-init: Stderr: 'Redirecting to /bin/systemctl start walinuxagent.service\nFailed to start walinuxagent.service: Unit walinuxagent.service failed to load: No such file or directory.\n'

Thanks.

Best,
Antoine Rouaze

Revision history for this message
Antoine ROUAZE (antoine-rouaze) wrote :

Sorry, I didn't notice that it can be override. I close the issue.

Revision history for this message
Joshua Powers (powersj) wrote :

Marking invalid per comment above.

Changed in cloud-init:
status: New → Invalid
Revision history for this message
James Falcon (falcojr) wrote :
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.