[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

shweta agarwal updated CLOUDSTACK-8789:
---------------------------------------
    Attachment: management-server.log.tar.gz

> setting userdata for VM is failing with b64decode TypeError: Incorrect padding
> ------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8789
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8789
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.6.0
>            Reporter: shweta agarwal
>            Priority: Critical
>             Fix For: 4.6.0
>
>         Attachments: management-server.log.tar.gz
>
>
> Repro steps:
> 1. Used cloudmonkey for deploy Virtual machine with userdata field
> deploy virtualmachine zoneid=1 templateid=5 serviceofferingid=1  
> userdata="dXNlcmRhdGE="
> Error:
> Userdata is not set in the VM
> Ms log shows follwoing error:
> 2015-08-31 07:30:12,534 DEBUG [c.c.h.x.r.CitrixResourceBase] 
> (DirectAgent-419:ctx-34cc397c) Executing command in VR: 
> /opt/cloud/bin/router_proxy.sh update_config.py 169.254.2.76 vm_password.json
> 2015-08-31 07:30:13,238 ERROR [c.c.u.s.SshHelper] 
> (DirectAgent-419:ctx-34cc397c) SSH execution of command 
> /opt/cloud/bin/router_proxy.sh update_config.py 169.254.2.76 vm_password.json 
> has an error status code in return. result output: [INFO] update_config.py :: 
> Processing incoming file => vm_password.json
> [INFO] Processing JSON file vm_password.json
> Traceback (most recent call last):
>   File "/opt/cloud/bin/update_config.py", line 140, in <module>
>     process_file()
>   File "/opt/cloud/bin/update_config.py", line 54, in process_file
>     finish_config()
>   File "/opt/cloud/bin/update_config.py", line 44, in finish_config
>     returncode = configure.main([])
>   File "/opt/cloud/bin/configure.py", line 664, in main
>     metadata.process()
>   File "/opt/cloud/bin/configure.py", line 257, in process
>     self.__createfile(ip, folder, file, data)
>   File "/opt/cloud/bin/configure.py", line 273, in __createfile
>     data = base64.b64decode(data)
>   File "/usr/lib/python2.7/base64.py", line 76, in b64decode
>     raise TypeError(msg)
> TypeError: Incorrect padding
> 2015-08-31 07:30:13,240 DEBUG [c.c.a.r.v.VirtualRoutingResource] 
> (DirectAgent-419:ctx-34cc397c) Processing ScriptConfigItem, executing 
> update_config.py vm_password.json took 706ms
> 2015-08-31 07:30:13,240 WARN  [c.c.a.r.v.VirtualRoutingResource] 
> (DirectAgent-419:ctx-34cc397c) Expected 1 answers while executing 
> SavePasswordCommand but received 2
> 2015-08-31 07:30:13,240 DEBUG [c.c.a.m.DirectAgentAttache] 
> (DirectAgent-419:ctx-34cc397c) Seq 1-4238168724332367732: Cancelling because 
> one of the answers is false and it is stop on error.
> 2015-08-31 07:30:13,240 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-41



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to