Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44A2417E0E for ; Wed, 23 Sep 2015 09:27:17 +0000 (UTC) Received: (qmail 79676 invoked by uid 500); 23 Sep 2015 09:27:04 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 79649 invoked by uid 500); 23 Sep 2015 09:27:04 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 79640 invoked by uid 500); 23 Sep 2015 09:27:04 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 79637 invoked by uid 99); 23 Sep 2015 09:27:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 09:27:04 +0000 Date: Wed, 23 Sep 2015 09:27:04 +0000 (UTC) From: "Rajani Karuturi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8789) setting userdata for VM is failing with b64decode TypeError: Incorrect padding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904231#comment-14904231 ] Rajani Karuturi commented on CLOUDSTACK-8789: --------------------------------------------- I created 4 vms with userdata(using the command given in description). Its not reproducible root@r-37-VM:~# cat /var/www/html/userdata/10.1.1.59/user-data userdataroot@r-37-VM:~# root@r-37-VM:~# cat /var/www/html/userdata/10.1.1.250/user-data userdataroot@r-37-VM:~# root@r-37-VM:~# cat /var/www/html/userdata/10.1.1.222/user-data userdataroot@r-37-VM:~# root@r-37-VM:~# cat /var/www/html/userdata/10.1.1.178/user-data userdataroot@r-37-VM:~# > 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 > 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)