Re: [Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-26 Thread Volodymyr Litovka

Please, check whether this can be an issue -

https://bugs.launchpad.net/openstack-manuals/+bug/1661759

you should use 'v2.0' path in both es2authtoken and keystone_authtoken 
sections of heat.conf.


On 6/23/17 3:47 PM, Amit Kumar wrote:

Hi All,

I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. 
Trying to use Heat::SoftwareDeployment resource similar to as 
described in:
https://github.com/openstack/heat-templates/blob/master/hot/software-config/example-templates/example-script-template.yaml ; 
but is not working as expected. SoftwareDeployment resource is always 
in progress state once heat stack is created from command line.


Here are the /var/log/cloud-init-output.log: 
http://paste.openstack.org/show/613502/
/var/log/os-collect-config.log shows these logs: 
http://paste.openstack.org/show/613503/. Can they cause any harm?
/var/run/heat-config/heat-config is showing the script and the input 
parameters which I want to run on VM. Here are the logs: 
http://paste.openstack.org/show/613504/ but in-spite of script and its 
input being here, 
//var/lib/cloud/instances/i-003a/scripts/userdata/ file is empty.
Here is the /var/lib/cloud/instances/i-003a/user-data.txt: 
http://paste.openstack.org/show/613505/


With the help of above logs, please see if you can point out if I am 
missing anything here.


Thanks.

Regards,
Amit




___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


--
Volodymyr Litovka
  "Vision without Execution is Hallucination." -- Thomas Edison

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-26 Thread Eugen Block

Hi,

since heat is not really my strong suit I won't be able to help you  
there. Hopefully, someone else with more experience will help you.


Regards,
Eugen


Zitat von Amit Kumar :


Thanks Eugene and Ignazio for your replies.

Please take note that Heat::SoftwareConfiguration is working perfectly at
my end. Shell script provided with Software configuration works fine.
Problem is occurring only when I am trying to use Heat::SoftwareDeployment
instead of using SoftwareConfig directly. Only motive behind using
SoftwareDeployment is to be able to pass input parameters to shell script.

Adding more to the above, VM is accessible from external new using SSH.
Flat NW is being used to put VM's eth0 on external NW. IP assigned is fixed
using NW port. If Nw is provider Nw then does it make any difference for
SoftwareConfig and SoftwareDeployment? curl -v http://169.254.169.254
 works fine.

Regards,
Amit

On Jun 23, 2017 6:51 PM, "Eugen Block"  wrote:

Hi,

it seems like your VM fails to connect to the metadata server, so any
configuration provided by user-data will have failed. Is the VM's network
configured properly? Does it get its IP by DHCP? Is it a provider network
or a self-service network?
If it's a provider network (external router), you'll have to provide the
user-data and network config by config-drive, this way you won't need a
metadata-server. If it's a self-service network, is DHCP enabled? Check
your ip config within your vm. If the ip config is as expected, try to
execute "curl -v http://169.254.169.254/latest";, does it timeout?

Are dhcp-server and metadata-server up and running? What's the output of
neutron agent-list

If you launch an instance in the same network without heat, just with the
user-data, does that work? If it does it's probably a heat issue. Have you
checked the heat logs for any hints?

Regards
Eugen


Zitat von Amit Kumar :

Hi All,


I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. Trying
to use Heat::SoftwareDeployment resource similar to as described in:
https://github.com/openstack/heat-templates/blob/master/hot/
software-config/example-templates/example-script-template.yaml
;
but is not working as expected. SoftwareDeployment resource is always in
progress state once heat stack is created from command line.

Here are the /var/log/cloud-init-output.log:
http://paste.openstack.org/show/613502/
/var/log/os-collect-config.log shows these logs:
http://paste.openstack.org/show/613503/. Can they cause any harm?
/var/run/heat-config/heat-config is showing the script and the input
parameters which I want to run on VM. Here are the logs:
http://paste.openstack.org/show/613504/ but in-spite of script and its
input being here, */var/lib/cloud/instances/i-003a/scripts/userdata*

file is empty.
Here is the /var/lib/cloud/instances/i-003a/user-data.txt:
http://paste.openstack.org/show/613505/

With the help of above logs, please see if you can point out if I am
missing anything here.

Thanks.

Regards,
Amit





--
Eugen Block voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail  : ebl...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983



___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack




--
Eugen Block voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail  : ebl...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-23 Thread Amit Kumar
Thanks Eugene and Ignazio for your replies.

Please take note that Heat::SoftwareConfiguration is working perfectly at
my end. Shell script provided with Software configuration works fine.
Problem is occurring only when I am trying to use Heat::SoftwareDeployment
instead of using SoftwareConfig directly. Only motive behind using
SoftwareDeployment is to be able to pass input parameters to shell script.

Adding more to the above, VM is accessible from external new using SSH.
Flat NW is being used to put VM's eth0 on external NW. IP assigned is fixed
using NW port. If Nw is provider Nw then does it make any difference for
SoftwareConfig and SoftwareDeployment? curl -v http://169.254.169.254
 works fine.

Regards,
Amit

On Jun 23, 2017 6:51 PM, "Eugen Block"  wrote:

Hi,

it seems like your VM fails to connect to the metadata server, so any
configuration provided by user-data will have failed. Is the VM's network
configured properly? Does it get its IP by DHCP? Is it a provider network
or a self-service network?
If it's a provider network (external router), you'll have to provide the
user-data and network config by config-drive, this way you won't need a
metadata-server. If it's a self-service network, is DHCP enabled? Check
your ip config within your vm. If the ip config is as expected, try to
execute "curl -v http://169.254.169.254/latest";, does it timeout?

Are dhcp-server and metadata-server up and running? What's the output of
neutron agent-list

If you launch an instance in the same network without heat, just with the
user-data, does that work? If it does it's probably a heat issue. Have you
checked the heat logs for any hints?

Regards
Eugen


Zitat von Amit Kumar :

Hi All,
>
> I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. Trying
> to use Heat::SoftwareDeployment resource similar to as described in:
> https://github.com/openstack/heat-templates/blob/master/hot/
> software-config/example-templates/example-script-template.yaml
> ;
> but is not working as expected. SoftwareDeployment resource is always in
> progress state once heat stack is created from command line.
>
> Here are the /var/log/cloud-init-output.log:
> http://paste.openstack.org/show/613502/
> /var/log/os-collect-config.log shows these logs:
> http://paste.openstack.org/show/613503/. Can they cause any harm?
> /var/run/heat-config/heat-config is showing the script and the input
> parameters which I want to run on VM. Here are the logs:
> http://paste.openstack.org/show/613504/ but in-spite of script and its
> input being here, */var/lib/cloud/instances/i-003a/scripts/userdata*
>
> file is empty.
> Here is the /var/lib/cloud/instances/i-003a/user-data.txt:
> http://paste.openstack.org/show/613505/
>
> With the help of above logs, please see if you can point out if I am
> missing anything here.
>
> Thanks.
>
> Regards,
> Amit
>



-- 
Eugen Block voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail  : ebl...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983



___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-23 Thread Eugen Block

Hi,

it seems like your VM fails to connect to the metadata server, so any  
configuration provided by user-data will have failed. Is the VM's  
network configured properly? Does it get its IP by DHCP? Is it a  
provider network or a self-service network?
If it's a provider network (external router), you'll have to provide  
the user-data and network config by config-drive, this way you won't  
need a metadata-server. If it's a self-service network, is DHCP  
enabled? Check your ip config within your vm. If the ip config is as  
expected, try to execute "curl -v http://169.254.169.254/latest";, does  
it timeout?


Are dhcp-server and metadata-server up and running? What's the output of
neutron agent-list

If you launch an instance in the same network without heat, just with  
the user-data, does that work? If it does it's probably a heat issue.  
Have you checked the heat logs for any hints?


Regards
Eugen


Zitat von Amit Kumar :


Hi All,

I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. Trying
to use Heat::SoftwareDeployment resource similar to as described in:
https://github.com/openstack/heat-templates/blob/master/hot/software-config/example-templates/example-script-template.yaml
;
but is not working as expected. SoftwareDeployment resource is always in
progress state once heat stack is created from command line.

Here are the /var/log/cloud-init-output.log:
http://paste.openstack.org/show/613502/
/var/log/os-collect-config.log shows these logs:
http://paste.openstack.org/show/613503/. Can they cause any harm?
/var/run/heat-config/heat-config is showing the script and the input
parameters which I want to run on VM. Here are the logs:
http://paste.openstack.org/show/613504/ but in-spite of script and its
input being here, */var/lib/cloud/instances/i-003a/scripts/userdata*
file is empty.
Here is the /var/lib/cloud/instances/i-003a/user-data.txt:
http://paste.openstack.org/show/613505/

With the help of above logs, please see if you can point out if I am
missing anything here.

Thanks.

Regards,
Amit




--
Eugen Block voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail  : ebl...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-23 Thread Ignazio Cassano
Hi Amit,
when I got issues with software config  the reason was the communication
between instance and heat_waitcondition_server_url specified in
/etc/heat/heat.conf.
I am not sure if it could help you.
Ignazio


2017-06-23 14:47 GMT+02:00 Amit Kumar :

> Hi All,
>
> I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. Trying
> to use Heat::SoftwareDeployment resource similar to as described in:
> https://github.com/openstack/heat-templates/blob/master/
> hot/software-config/example-templates/example-script-template.yaml ; but
> is not working as expected. SoftwareDeployment resource is always in
> progress state once heat stack is created from command line.
>
> Here are the /var/log/cloud-init-output.log: http://paste.
> openstack.org/show/613502/
> /var/log/os-collect-config.log shows these logs: http://paste.openstack.
> org/show/613503/. Can they cause any harm?
> /var/run/heat-config/heat-config is showing the script and the input
> parameters which I want to run on VM. Here are the logs:
> http://paste.openstack.org/show/613504/ but in-spite of script and its
> input being here, */var/lib/cloud/instances/i-003a/scripts/userdata*
> file is empty.
> Here is the /var/lib/cloud/instances/i-003a/user-data.txt: http
> ://paste.openstack.org/show/613505/
>
> With the help of above logs, please see if you can point out if I am
> missing anything here.
>
> Thanks.
>
> Regards,
> Amit
>
>
>
> ___
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] [heat] Heat::SoftwareDeployment not working

2017-06-23 Thread Amit Kumar
Hi All,

I have installed OpenStack Mitaka using OpenStack-Ansible 13.3.13. Trying
to use Heat::SoftwareDeployment resource similar to as described in:
https://github.com/openstack/heat-templates/blob/master/hot/software-config/example-templates/example-script-template.yaml
;
but is not working as expected. SoftwareDeployment resource is always in
progress state once heat stack is created from command line.

Here are the /var/log/cloud-init-output.log:
http://paste.openstack.org/show/613502/
/var/log/os-collect-config.log shows these logs:
http://paste.openstack.org/show/613503/. Can they cause any harm?
/var/run/heat-config/heat-config is showing the script and the input
parameters which I want to run on VM. Here are the logs:
http://paste.openstack.org/show/613504/ but in-spite of script and its
input being here, */var/lib/cloud/instances/i-003a/scripts/userdata*
file is empty.
Here is the /var/lib/cloud/instances/i-003a/user-data.txt:
http://paste.openstack.org/show/613505/

With the help of above logs, please see if you can point out if I am
missing anything here.

Thanks.

Regards,
Amit
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack