Re: [openstack-dev] [tripleo] network isolation can't find files referred to on director

2018-07-28 Thread Samuel Monderer
Hi,

With my nic configs I get the following error

2018-07-26 16:42:49Z [overcloud.ComputeGammaV3.0.NetworkConfig]:
CREATE_FAILED  resources.NetworkConfig: Parameter
'InternalApiNetworkVlanID' is invalid: could not convert string to float:
2018-07-26 16:42:49Z [overcloud.ComputeGammaV3.0]: CREATE_FAILED  Resource
CREATE failed: resources.NetworkConfig: Parameter
'InternalApiNetworkVlanID' is invalid: could not convert string to float:
2018-07-26 16:42:50Z [overcloud.ComputeGammaV3.0]: CREATE_FAILED
resources.NetworkConfig: resources[0].Parameter 'InternalApiNetworkVlanID'
is invalid: could not convert string to float:
2018-07-26 16:42:50Z [overcloud.ComputeGammaV3]: UPDATE_FAILED  Resource
CREATE failed: resources.NetworkConfig: resources[0].Parameter
'InternalApiNetworkVlanID' is invalid: could not convert string to float:
2018-07-26 16:42:51Z [overcloud.ComputeGammaV3]: CREATE_FAILED
resources.ComputeGammaV3: Resource CREATE failed: resources.NetworkConfig:
resources[0].Parameter 'InternalApiNetworkVlanID' is invalid: could not
convert string to float:
2018-07-26 16:42:51Z [overcloud]: CREATE_FAILED  Resource CREATE failed:
resources.ComputeGammaV3: Resource CREATE failed: resources.NetworkConfig:
resources[0].Parameter 'InternalApiNetworkVlanID' is invalid: could not
convert string to float:
2018-07-26 16:42:51Z [overcloud.ComputeGammaV3.0.NetIpMap]:
CREATE_COMPLETE  state changed

 Stack overcloud CREATE_FAILED

overcloud.ComputeGammaV3.0.NetworkConfig:
  resource_type: OS::TripleO::ComputeGammaV3::Net::SoftwareConfig
  physical_resource_id:
  status: CREATE_FAILED
  status_reason: |
resources.NetworkConfig: Parameter 'InternalApiNetworkVlanID' is
invalid: could not convert string to float:
Heat Stack create failed.
Heat Stack create failed.
(undercloud) [stack@staging-director ~]$ packet_write_wait: Connection to
192.168.50.30 port 22: Broken pipe


The parameter is defined as following in nic config file

  InternalApiNetworkVlanID:
default: ''
description: Vlan ID for the internal_api network traffic.
type: number

I worked fine when I was using RHOSP11(Ocata)

The custom_network_data.yaml defines the internal network as following

- name: InternalApi
  name_lower: internal_api
  vip: true
  vlan: 711
  ip_subnet: '172.16.2.0/24'
  allocation_pools: [{'start': '172.16.2.4', 'end': '172.16.2.250'}]

Samuel

On Fri, Jul 27, 2018 at 7:41 PM, James Slagle 
wrote:

> On Thu, Jul 26, 2018 at 4:58 AM, Samuel Monderer
>  wrote:
> > Hi James,
> >
> > I understand the network-environment.yaml will also be generated.
> > What do you mean by rendered path? Will it be
> > "usr/share/openstack-tripleo-heat-templates/network/ports/"?
>
> Yes, the rendered path is the path that the jinja2 templating process
> creates.
>
> > By the way I didn't find any other place in my templates where I refer to
> > these files?
> > What about custom nic configs is there also a jinja2 process to create
> them?
>
> No. custom nic configs are by definition, custom to the environment
> you are deploying. Only you know how to properly define what newtork
> configurations needs applying.
>
> Our sample nic configs are generated from jinja2 now. For example:
> tripleo-heat-templates/network/config/single-nic-vlans/role.role.j2.yaml
>
> If you wanted to follow that pattern such that your custom nic config
> templates were generated, you could do that
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [tripleo] network isolation can't find files referred to on director

2018-07-27 Thread James Slagle
On Thu, Jul 26, 2018 at 4:58 AM, Samuel Monderer
 wrote:
> Hi James,
>
> I understand the network-environment.yaml will also be generated.
> What do you mean by rendered path? Will it be
> "usr/share/openstack-tripleo-heat-templates/network/ports/"?

Yes, the rendered path is the path that the jinja2 templating process creates.

> By the way I didn't find any other place in my templates where I refer to
> these files?
> What about custom nic configs is there also a jinja2 process to create them?

No. custom nic configs are by definition, custom to the environment
you are deploying. Only you know how to properly define what newtork
configurations needs applying.

Our sample nic configs are generated from jinja2 now. For example:
tripleo-heat-templates/network/config/single-nic-vlans/role.role.j2.yaml

If you wanted to follow that pattern such that your custom nic config
templates were generated, you could do that

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [tripleo] network isolation can't find files referred to on director

2018-07-26 Thread Samuel Monderer
Hi James,

I understand the network-environment.yaml will also be generated.
What do you mean by rendered path? Will it be
"usr/share/openstack-tripleo-heat-templates/network/ports/"?
By the way I didn't find any other place in my templates where I refer to
these files?
What about custom nic configs is there also a jinja2 process to create them?

Samuel

On Thu, Jul 26, 2018 at 12:02 AM James Slagle 
wrote:

> On Wed, Jul 25, 2018 at 11:56 AM, Samuel Monderer
>  wrote:
> > Hi,
> >
> > I'm trying to upgrade from OSP11(Ocata) to OSP13 (Queens)
> > In my network-isolation I refer to files that do not exist anymore on the
> > director such as
> >
> >   OS::TripleO::Compute::Ports::ExternalPort:
> > /usr/share/openstack-tripleo-heat-templates/network/ports/external.yaml
> >   OS::TripleO::Compute::Ports::InternalApiPort:
> >
> /usr/share/openstack-tripleo-heat-templates/network/ports/internal_api.yaml
> >   OS::TripleO::Compute::Ports::StoragePort:
> > /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
> >   OS::TripleO::Compute::Ports::StorageMgmtPort:
> > /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
> >   OS::TripleO::Compute::Ports::TenantPort:
> > /usr/share/openstack-tripleo-heat-templates/network/ports/tenant.yaml
> >   OS::TripleO::Compute::Ports::ManagementPort:
> >
> /usr/share/openstack-tripleo-heat-templates/network/ports/management_from_pool.yaml
> >
> > Where have they gone?
>
> These files are now generated from network/ports/port.network.j2.yaml
> during the jinja2 template rendering process. They will be created
> automatically during the overcloud deployment based on the enabled
> networks from network_data.yaml.
>
> You still need to refer to the rendered path (as shown in your
> example) in the various resource_registry entries.
>
> This work was done to enable full customization of the created
> networks used for the deployment. See:
>
> https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/custom_networks.html
>
>
> --
> -- James Slagle
> --
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [tripleo] network isolation can't find files referred to on director

2018-07-25 Thread James Slagle
On Wed, Jul 25, 2018 at 11:56 AM, Samuel Monderer
 wrote:
> Hi,
>
> I'm trying to upgrade from OSP11(Ocata) to OSP13 (Queens)
> In my network-isolation I refer to files that do not exist anymore on the
> director such as
>
>   OS::TripleO::Compute::Ports::ExternalPort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/external.yaml
>   OS::TripleO::Compute::Ports::InternalApiPort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/internal_api.yaml
>   OS::TripleO::Compute::Ports::StoragePort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
>   OS::TripleO::Compute::Ports::StorageMgmtPort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
>   OS::TripleO::Compute::Ports::TenantPort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/tenant.yaml
>   OS::TripleO::Compute::Ports::ManagementPort:
> /usr/share/openstack-tripleo-heat-templates/network/ports/management_from_pool.yaml
>
> Where have they gone?

These files are now generated from network/ports/port.network.j2.yaml
during the jinja2 template rendering process. They will be created
automatically during the overcloud deployment based on the enabled
networks from network_data.yaml.

You still need to refer to the rendered path (as shown in your
example) in the various resource_registry entries.

This work was done to enable full customization of the created
networks used for the deployment. See:
https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/custom_networks.html


-- 
-- James Slagle
--

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [tripleo] network isolation can't find files referred to on director

2018-07-25 Thread Samuel Monderer
Hi,

I'm trying to upgrade from OSP11(Ocata) to OSP13 (Queens)
In my network-isolation I refer to files that do not exist anymore on the
director such as

  OS::TripleO::Compute::Ports::ExternalPort:
/usr/share/openstack-tripleo-heat-templates/network/ports/external.yaml
  OS::TripleO::Compute::Ports::InternalApiPort:
/usr/share/openstack-tripleo-heat-templates/network/ports/internal_api.yaml
  OS::TripleO::Compute::Ports::StoragePort:
/usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
  OS::TripleO::Compute::Ports::StorageMgmtPort:
/usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml
  OS::TripleO::Compute::Ports::TenantPort:
/usr/share/openstack-tripleo-heat-templates/network/ports/tenant.yaml
  OS::TripleO::Compute::Ports::ManagementPort:
/usr/share/openstack-tripleo-heat-templates/network/ports/management_from_pool.yaml

Where have they gone?

Samuel
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev