Ask Your Question
0

issue with tripleo

asked 2018-09-05 04:47:36 -0600

akarki gravatar image

updated 2018-09-05 11:52:29 -0600

Hi, I am trying to deploy tripleo overcloud with pre configured nodes

https://docs.openstack.org/tripleo-do...

Issue is the dploy command uses deployed-server-environment.yaml but it is not present in my /usr/share.../enviroment directory instead deployed-server-environment.j2.yaml is present .Is this all right?

Also running the command openstack overcloud deploy with deployed-server-environment.yaml (even its not present) shows me the error: "NetworkConfig.Properties: Property EC2MetadataIp not assigned" Even though ip is present in my target nodes within the ctlplane subnet. So to solve this i created another network yaml (test-net.yaml)as given below:

resource_registry:
  OS::TripleO::DeployedServer::ControlPlanePort: ../deployed-server/deployed-neutron-port.yaml
parameter_defaults:
  DeployedServerPortMap:
    controller0-ctlplane:
      fixed_ips:
        - ip_address: 192.168.24.6
      subnets:
        - cidr: 192.168.24.0/24
    compute0-ctlplane:
      fixed_ips:
        - ip_address: 192.168.24.7
      subnets:
        - cidr: 192.168.24..0/24

Still i get the same Ec2 ip error

Command i am using is:

openstack overcloud deploy --control-flavor control --control-scale 1 --compute-flavor compute --compute-scale 1 --templates  --disable-validations  -e /usr/share/openstack-tripleo-heat-templates/environments/deployed-server-environment.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/deployed-server-bootstrap-environment-centos.yaml -e /usr/share/openstack-tripleo-heat-templates/deployed-server/test-net.yaml -r /usr/share/openstack-tripleo-heat-templates/deployed-server/deployed-server-roles-data.yaml

Thanks in advance

Update

So for network configuration I was reading in the doc there are 2 yaml net-config-static-bridge.yaml & net-config-static.yaml.

However in /us/share path there are only jinja2 templates of these files so i explicity created a file net-config-static-bridge.yaml with following data:

parameter_defaults:
  NeutronPublicInterface: em1(provisioning network)
  ControlPlaneDefaultRoute: 192.168.24.1(undercloud network)
  EC2MetadataIp: 192.168.24.1(undercloup ip)

Also so our setup is basically 2 nic on all nodes one for external connectivity(172.16.141.0/24) and one for tripleo provisioning network(192.168.24.0) Also we have not exposed and public endpoint of openstack. All the services of openstack work in same subnet(192.168.24.0)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-09-05 08:27:14 -0600

codylab gravatar image

updated 2018-09-05 08:31:17 -0600

This post does not tend to be an answer to this question, but rather adds a comment with a legible formatting.

I never used the pre-provisioned method to deploy overcloud, but wanted to share my thoughts on some of your questions.

  • Jinja2 templates (.j2) will be automatically rendered into yaml files during deployment. You just need to pretend the file is already there when you pass it to the deploy command. So you are doing it right.
  • EC2MetadataIp and ControlPlaneDefaultRoute need to be provided in an environment file. You may add them into your test-net.yaml file, immediately under the 'parameter_defaults' section.
  • When creating and using environment files outside of the default heat template directory, try to use the absolute path in the 'resource_registry' to avoid issues. In the test-net.yaml, set OS::TripleO::DeployedServer::ControlPlanePort: /usr/share/openstack-tripleo-heat-templates/deployed-server/deployed-neutron-port.yaml
  • Some command line parameters you used have been deprecated . Instead of using --control-flavor --control-scale and the like, it is prefered to set them in an environment file under the 'parameter_defaults' section such as:
    • OvercloudControllerFlavor: control
    • ControllerCount: 1

It would be nice to know more details on your network and NIC setup in this case. How many NICs do you have on each node? Do you plan to use the provisioning network (ctlplane) for all overcloud services?

edit flag offensive delete link more

Comments

thanks for quick response..I have update the question.. also if u can tell me in point 2 : EC2MetadataIp and ControlPlaneDefaultRoute should these be undercloud br-ctlplane ip and default route?

akarki gravatar imageakarki ( 2018-09-05 11:53:47 -0600 )edit

I cannot get the format worked properly here. Please have a look at: http://paste.openstack.org/show/729571/.

codylab gravatar imagecodylab ( 2018-09-05 13:24:08 -0600 )edit

If it worked, the deployment process would stuck at the [overcloud.Compute.0.Compute]: CREATE_IN_PROGRESS and the [overcloud.Controller.0.Controller]: CREATE_IN_PROGRESS stage. You then need to manually set the overcloud servers to poll heat from undercloud. But let's first see how it goes.

codylab gravatar imagecodylab ( 2018-09-05 13:28:25 -0600 )edit

thanks a lot man..I have just one query how will the target nodes get ip(provisioning network) and if i want already have ip in target nodes..how will tripleo know .is test-net.yaml enough?

akarki gravatar imageakarki ( 2018-09-05 22:24:31 -0600 )edit

and also what logs to check in case the stack deployment is stuck??

akarki gravatar imageakarki ( 2018-09-05 23:10:24 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-09-05 04:47:36 -0600

Seen: 186 times

Last updated: Sep 05