cloud VM preconfig is not working

Bug #1667139 reported by wenqing liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Dheeraj Gautam

Bug Description

cloud VM preconfig of a vm cluster from a vm server manager on 4.0.0.0-3040~mitaka is not working:

root@vm-1:/opt/contrail/server_manager/client# python preconfig.py --server-json /root/store/server.json --server-manager-ip 9.1.1.8 --server-manager-repo-port 80
Configuring => vm-2
/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
  self._cipher = factory.new(key, *args, **kwargs)
[2017-02-22 21:14:54,511: exec_cmd] [error_on_fail]: Cmd (mv /etc/ntp.conf /etc/ntp.conf.$(date +%Y_%m_%d__%H_%M_%S).contrailbackup) Failed
Traceback (most recent call last):
  File "preconfig.py", line 486, in <module>
    Utils.preconfig(args)
  File "preconfig.py", line 92, in preconfig
    hostobj.preconfig()
  File "preconfig.py", line 234, in preconfig
    self.preconfig_ntp_config()
  File "preconfig.py", line 440, in preconfig_ntp_config
    self.check_ntp_status()
  File "preconfig.py", line 416, in check_ntp_status
    self.setup_ntp()
  File "preconfig.py", line 423, in setup_ntp
    error_on_fail=True)
  File "preconfig.py", line 210, in exec_cmd
    raise RuntimeError('[error_on_fail]: Cmd (%s) Failed' % original_cmd)
RuntimeError: [error_on_fail]: Cmd (mv /etc/ntp.conf /etc/ntp.conf.$(date +%Y_%m_%d__%H_%M_%S).contrailbackup) Failed
root@vm-1:/opt/contrail/server_manager/client# contrail-version
contrail-version: command not found
root@vm-1:/opt/contrail/server_manager/client#

Revision history for this message
Dheeraj Gautam (dgautam) wrote :

This issue has been fixed, so marking fixed.

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.