1
0
-1

Not sure what is wrong but dcae postgress always fails at boot (cloud-init) whereas other components like collector and cdap boots properly.. What could be possibly wrong?


[ 53.191251] cloud-init[894]: 2017-06-23 01:41:05,293 - util.py[WARNING]: Failed fetching metadata from url http://169.254.169.254/2009-04-04/meta-data/
[ 53.221351] cloud-init[894]: 2017-06-23 01:41:05,366 - util.py[WARNING]: failed stage init
[ 53.243799] cloud-init[894]: failed run of stage init
[ 53.244901] cloud-init[894]: ------------------------------------------------------------
[ 53.246518] cloud-init[894]: Traceback (most recent call last):
[ 53.247714] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 647, in status_wrapper
[ 53.250330] cloud-init[894]: ret = functor(name, args)
[ 53.252300] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 361, in main_init
[ 53.254828] cloud-init[894]: iid = init.instancify()
[ 53.256120] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 352, in instancify
[ 53.257931] cloud-init[894]: return self._reflect_cur_instance()
[ 53.259384] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 283, in _reflect_cur_instance
[ 53.261750] cloud-init[894]: idir = self._get_ipath()
[ 53.262850] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 274, in _get_ipath
[ 53.264634] cloud-init[894]: instance_dir = self.paths.get_ipath(subname)
[ 53.267022] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 376, in get_ipath
[ 53.269169] cloud-init[894]: ipath = self._get_ipath(name)
[ 53.270349] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 362, in _get_ipath
[ 53.272597] cloud-init[894]: iid = self.datasource.get_instance_id()
[ 53.274229] cloud-init[894]: File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceEc2.py", line 92, in get_instance_id
[ 53.276832] cloud-init[894]: return self.metadata['instance-id']
[ 53.278760] cloud-init[894]: KeyError: 'instance-id'
[ 53.280612] cloud-init[894]: ------------------------------------------------------------
[FAILED] Failed to start Initial cloud-init job (metadata service crawler).

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Carsten Lund I have built another Ubuntu-16.04.qcow2 image and used it. Works fine now. 

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Carsten Lund I have tried booting the image ubuntu-16.04 multiple times as a VM and also the same image works for MSO, Robot and SDC components but fails for postgress. Can you please help me here?

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Of the 5 DCAE VMs only this VM issuing a Ubuntu 16.04 image, the others are using an 14.04.

          So you need to make sure that the 16.04 image is working correctly in your Openstack Env.

          Cloud-init is before many customization is done so this should not be a DCAE issue but an Openstack setup issue.

          Note the error refers to EC2, so I could guess that your image is requiring that the EC2 OpenStack service is setup which your Openstack may not have.

          1. kranthi guttikonda

            Carsten Lund Thanks. Its strange. Other components like MSO, Robot and SDC shares the same images Ubuntu-16.04 and no errors have been observed with them.

          2. Carsten Lund

            The DCAE uses 'config drive' with cloud-init which the heat template does not do for MSO, Robot and SDC.

            This could explain it.

          CommentAdd your comment...