[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900392#comment-14900392
 ] 

shweta agarwal commented on CLOUDSTACK-8789:
--------------------------------------------

try for two three times and you will hit it.
I hit it again

2015-09-21 07:56:24,525 DEBUG [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-338:ctx-2f5e8368) Copying VR with ip 169.254.3.67 config file into 
host 10.220.131.125
2015-09-21 07:56:24,903 DEBUG [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-338:ctx-2f5e8368) VR Config file vm_password.json got created in 
VR, ip 169.254.3.67 with content
{"ip_address":"192.168.200.199","password":"saved_password","type":"vmpassword"}
2015-09-21 07:56:24,903 DEBUG [c.c.a.r.v.VirtualRoutingResource] 
(DirectAgent-338:ctx-2f5e8368) Processing FileConfigItem, copying 80 characters 
to vm_password.json took 383ms
2015-09-21 07:56:24,903 DEBUG [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-338:ctx-2f5e8368) Executing command in VR: 
/opt/cloud/bin/router_proxy.sh update_config.py 169.254.3.67 vm_password.json
2015-09-21 07:56:25,283 ERROR [c.c.u.s.SshHelper] 
(DirectAgent-338:ctx-2f5e8368) SSH execution of command 
/opt/cloud/bin/router_proxy.sh update_config.py 169.254.3.67 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 831, in main
    metadata.process()
  File "/opt/cloud/bin/configure.py", line 258, in process
    self.__createfile(ip, folder, file, data)
  File "/opt/cloud/bin/configure.py", line 274, in __createfile
    data = base64.b64decode(data)
  File "/usr/lib/python2.7/base64.py", line 76, in b64decode
    raise TypeError(msg)
TypeError: Incorrect padding

2015-09-21 07:56:25,286 DEBUG [c.c.a.r.v.VirtualRoutingResource] 
(DirectAgent-338:ctx-2f5e8368) Processing ScriptConfigItem, executing 
update_config.py vm_password.json took 383ms


> 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: Blocker
>             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