cloudfoundry-community / cyoi

Choose Your Own Infrastructure
MIT License
3 stars 4 forks source link

issue in bosh-bootstrap #15

Open theggi2014 opened 10 years ago

theggi2014 commented 10 years ago

Hello,

We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node.

I have reviewed both the .fog & yml files and They are as follows:

/////////////////////////////////////////////////////////////////////////////////////////////////////// ~/.fog

:openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml

name: microbosh-openstack

logging: level: DEBUG

network: type: manual

vip: # Optional

ip: 192.168.20.17

cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small

cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin

  region:  # Optional
  default_security_groups: ["ssh", "bosh"]
  default_key_name: cf_key
  private_key: ~/bosh-workspace/deployments/microbosh-openstack/

apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)

  1. OpenStack (openstack)
  2. Alternate credentials Choose an auto-detected infrastructure: 1

Using provider OpenStack OpenStack Region (optional):

Confirming: Using OpenStack (user: admin)

  1. (192.168.10.0/24)
  2. (10.1.9.249/24)
  3. (192.168.20.0/24)
  4. (192.168.2.0/24)
  5. SecondSubnet (192.168.22.0/24) Choose a subnet: 3

Choose IP |192.168.20.2| 192.168.20.17

Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:insave' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:inauthorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:inblock in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:inperform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:inselect_or_provision_public_networking'

    from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in `perform'
    from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:in `deploy'
    from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in `run'
    from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:in `invoke_task'
    from /usr/lib/ruby/vendor_ruby/thor.rb:275:in `dispatch'
    from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:in `start'
    from ./bin/bosh-bootstrap:9:in `<main>'

root@cu-cont:/home/easi/bosh-bootstrap#

Please advice. Regards

drnic commented 10 years ago

The neutron support is in a branch "neutron". Does this work for you?

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)
    1. OpenStack (openstack)
    2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
    3. (192.168.10.0/24)
    4. (10.1.9.249/24)
    5. (192.168.20.0/24)
    6. (192.168.2.0/24)
    7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:insave' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:inauthorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:inblock in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:inperform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:inselect_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:indeploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
      ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

drnic commented 10 years ago

Do you have any ideas what might be different/interesting about your OpenStack installation?

Can you have a look at Fog OpenStack SecurityGroup model and perhaps see what this new field is? And if/when it's required?

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)
    1. OpenStack (openstack)
    2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
    3. (192.168.10.0/24)
    4. (10.1.9.249/24)
    5. (192.168.20.0/24)
    6. (192.168.2.0/24)
    7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:insave' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:inauthorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:inblock in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:inperform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:inselect_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:indeploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
      ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

drnic commented 10 years ago

I'm asking because I don't get this error for the test OpenStack I'm working with in the neutron branch. But OpenStacks can be different.

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)
    1. OpenStack (openstack)
    2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
    3. (192.168.10.0/24)
    4. (10.1.9.249/24)
    5. (192.168.20.0/24)
    6. (192.168.2.0/24)
    7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:insave' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:inauthorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:inblock in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:inperform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:inselect_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:indeploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
      ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

theggi2014 commented 10 years ago

For the time being, I do not have neturon and I prefer to not go to install it now. If it is the only solution, we can do that. Regards.

On Sat, Feb 22, 2014 at 7:47 PM, Dr Nic Williams notifications@github.comwrote:

The neutron support is in a branch "neutron". Does this work for you?

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)

  1. OpenStack (openstack)
  2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
  3. (192.168.10.0/24)
  4. (10.1.9.249/24)
  5. (192.168.20.0/24)
  6. (192.168.2.0/24)
  7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:in save' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:in authorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:in block in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:in select_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:in deploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
    ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry-community/cyoi/issues/15#issuecomment-35808954 .

theggi2014 commented 10 years ago

I think the issue is related to security groups, I have reviewed all of them but I think that there are something missing. We have created all required security groups with the required rules but there may be in applying problem.

We can search in Fog OpenStack SecurityGroup model as your advice.

Regards.

On Sat, Feb 22, 2014 at 7:51 PM, Dr Nic Williams notifications@github.comwrote:

Do you have any ideas what might be different/interesting about your OpenStack installation?

Can you have a look at Fog OpenStack SecurityGroup model and perhaps see what this new field is? And if/when it's required?

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)

  1. OpenStack (openstack)
  2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
  3. (192.168.10.0/24)
  4. (10.1.9.249/24)
  5. (192.168.20.0/24)
  6. (192.168.2.0/24)
  7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:in save' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:in authorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:in block in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:in select_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:in deploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
    ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry-community/cyoi/issues/15#issuecomment-35809059 .

drnic commented 10 years ago

It looks like you have neutron. You chose a subnet. Perhaps I'm detecting your env incorrectly?

You selected the subnet in this section:

  1. (192.168.10.0/24)
  2. (10.1.9.249/24)
  3. (192.168.20.0/24)
  4. (192.168.2.0/24)
  5. SecondSubnet (192.168.22.0/24)

Choose a subnet: 3

Choose IP |192.168.20.2| 192.168.20.17

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region: /////////////////////////////////////////////////////////////////////////////////////////////////////// ~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)
    1. OpenStack (openstack)
    2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
    3. (192.168.10.0/24)
    4. (10.1.9.249/24)
    5. (192.168.20.0/24)
    6. (192.168.2.0/24)
    7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:insave' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:inauthorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:ineach' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:inblock in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:inperform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:inselect_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:indeploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
      ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

theggi2014 commented 10 years ago

yes, I select the subnet during the deploying but I have reviewed the installation components and I do not find neutron.

On Sat, Feb 22, 2014 at 8:17 PM, Dr Nic Williams notifications@github.comwrote:

It looks like you have neutron. You chose a subnet. Perhaps I'm detecting your env incorrectly?

You selected the subnet in this section:

  1. (192.168.10.0/24)
  2. (10.1.9.249/24)
  3. (192.168.20.0/24)
  4. (192.168.2.0/24)
  5. SecondSubnet (192.168.22.0/24)

Choose a subnet: 3

Choose IP |192.168.20.2| 192.168.20.17

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)

  1. OpenStack (openstack)
  2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
  3. (192.168.10.0/24)
  4. (10.1.9.249/24)
  5. (192.168.20.0/24)
  6. (192.168.2.0/24)
  7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:in save' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:in authorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:in block in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:in select_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:in deploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
    ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry-community/cyoi/issues/15#issuecomment-35809802 .

drnic commented 10 years ago

Can you tell me more about your OpenStack installation? Email me directly if it's sensitive

On Sat, Feb 22, 2014 at 10:25 AM, theggi2014 notifications@github.com wrote:

yes, I select the subnet during the deploying but I have reviewed the installation components and I do not find neutron. On Sat, Feb 22, 2014 at 8:17 PM, Dr Nic Williams notifications@github.comwrote:

It looks like you have neutron. You chose a subnet. Perhaps I'm detecting your env incorrectly?

You selected the subnet in this section:

  1. (192.168.10.0/24)
  2. (10.1.9.249/24)
  3. (192.168.20.0/24)
  4. (192.168.2.0/24)
  5. SecondSubnet (192.168.22.0/24)

Choose a subnet: 3

Choose IP |192.168.20.2| 192.168.20.17

On Sat, Feb 22, 2014 at 9:44 AM, theggi2014 notifications@github.com wrote:

Hello, We have Grizzly Open Stack installed in 3 nodes: controller, network, and compute. We have decided to use Cloud Foundry as an Open PaaS, and we are trying to install it on the controller node. I have reviewed both the .fog & yml files and They are as follows:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/.fog :openstack: :openstack_auth_url: http://10.1.9.240:5000/v2.0/tokens :openstack_api_key: admin_pass :openstack_username: admin :openstack_tenant: admin :openstack_region:

///////////////////////////////////////////////////////////////////////////////////////////////////////

~/bosh-workspace/deployments/microbosh-openstack#micro_bosh.yml name: microbosh-openstack logging: level: DEBUG network: type: manual

vip: # Optional

ip: 192.168.20.17 cloud_properties: net_id: 5431f17e-a868-44cb-940f-b8b39890949f

net_id: 8d07dab9-fee6-4b41-a2e7-7bb59461d870

resources: persistent_disk: 2048 cloud_properties: instance_type: m1.small cloud: plugin: openstack properties: openstack: auth_url: http://10.1.9.240:5000/v2.0/tokens username: admin api_key: admin_pass tenant: admin region: # Optional default_security_groups: ["ssh", "bosh"] default_key_name: cf_key private_key: ~/bosh-workspace/deployments/microbosh-openstack/ apply_spec: properties: director: max_threads: 3 hm: resurrector_enabled: true ntp:

  • 0.north-america.pool.ntp.org
  • 1.north-america.pool.ntp.org

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

then we have deleted ~/.microbosh and execute the below steps: root@cu-cont:/home/easi/bosh-bootstrap# rm -R ~/.microbosh/ root@cu-cont:/home/easi/bosh-bootstrap# ./bin/bosh-bootstrap deploy Auto-detected infrastructure API credentials at ~/.fog (override with $FOG)

  1. OpenStack (openstack)
  2. Alternate credentials Choose an auto-detected infrastructure: 1 Using provider OpenStack OpenStack Region (optional): Confirming: Using OpenStack (user: admin)
  3. (192.168.10.0/24)
  4. (10.1.9.249/24)
  5. (192.168.20.0/24)
  6. (192.168.2.0/24)
  7. SecondSubnet (192.168.22.0/24) Choose a subnet: 3 Choose IP |192.168.20.2| 192.168.20.17 Confirming: Using address 192.168.20.17 Reusing security group ssh -> no additional ports opened Reusing security group dns_server /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/attributes.rb:180:in requires': parent_group_id is required for this operation (ArgumentError) from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:in save' from /var/lib/gems/1.9.1/gems/fog-1.20.0/lib/fog/core/collection.rb:51:in create' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:in authorize_port_range' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in block (2 levels) in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in block in create_security_group' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in each' from /var/lib/gems/1.9.1/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in create_security_group' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:11:in block in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in each' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network_providers/openstack.rb:10:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/network.rb:15:in deploy' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:46:in select_or_provision_public_networking' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in perform' from /home/easi/bosh-bootstrap/lib/bosh-bootstrap/thor_cli.rb:11:in deploy' from /usr/lib/ruby/vendor_ruby/thor/task.rb:27:in run' from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:120:ininvoke_task' from /usr/lib/ruby/vendor_ruby/thor.rb:275:in dispatch' from /usr/lib/ruby/vendor_ruby/thor/base.rb:425:instart' from ./bin/bosh-bootstrap:9:in `
    ' root@cu-cont:/home/easi/bosh-bootstrap# Please advice.

Regards

Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15

Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry-community/cyoi/issues/15#issuecomment-35809802 .


Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry-community/cyoi/issues/15#issuecomment-35809984

cattode commented 10 years ago

To give some more inputs, I also had the "parent_group_id is required for this operation" issue in the creating / reusing security groups step with bosh-bootstrap (using an OpenStack Grizzly too).

Changing the cyoi gem from v0.8.3 to v0.7.0 did the trick for me, except that I now get the following fog warnings for each security group:

[fog][DEPRECATION] #rules is deprecated. Use #security_group_rules instead
[fog][DEPRECATION] #create_security_group_rule is deprecated. Use the Fog::Compute::Openstack::SecurityGroupRules collection to create new rules.
bcavileer commented 10 years ago

I'm using devstack (master) and I ran into this error

Downgrading cyoi to v0.7.0 fixed it for me as well.

From a fresh devstack:

bosh-bootstrap deploy
1. AWS
2. OpenStack
3. vSphere
Choose your infrastructure: 2

Using provider OpenStack
Username: admin
Password: <pass>
Tenant: admin
Authorization Token URL: http://192.168.1.114:5000/v2.0
OpenStack Region (optional): 

Confirming: Using OpenStack (user: admin)
Acquiring a public IP address... 192.168.1.228

Confirming: Using address 192.168.1.228
Created security group ssh
/home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/fog-core-1.21.1/lib/fog/core/attributes.rb:186:in `requires': parent_group_id is required for this operation (ArgumentError)
/home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/fog-core-1.21.1/lib/fog/core/attributes.rb:186:in `requires': parent_group_id is required for this operation (ArgumentError)
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/fog-1.21.0/lib/fog/openstack/models/compute/security_group_rule.rb:17:in `save'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/fog-core-1.21.1/lib/fog/core/collection.rb:51:in `create'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/openstack_provider_client.rb:84:in `authorize_port_range'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:121:in `block (2 levels) in create_security_group'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in `each'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:118:in `block in create_security_group'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in `each'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/cyoi-0.8.3/lib/cyoi/providers/clients/fog_provider_client.rb:116:in `create_security_group'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/network_providers/openstack.rb:11:in `block in perform'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/network_providers/openstack.rb:10:in `each'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/network_providers/openstack.rb:10:in `perform'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/network.rb:15:in `deploy'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/cli/commands/deploy.rb:46:in `select_or_provision_public_networking'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/cli/commands/deploy.rb:21:in `perform'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/lib/bosh-bootstrap/thor_cli.rb:11:in `deploy'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/gems/bosh-bootstrap-0.12.0/bin/bosh-bootstrap:9:in `<top (required)>'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/bin/bosh-bootstrap:23:in `load'
    from /home/benjamin/.rvm/gems/ruby-1.9.3-p545@bosh/bin/bosh-bootstrap:23:in `<main>'
frikhaimen commented 10 years ago

My question is : how can i changethe cyoi gem from v0.8.3 to v0.7.0?

which commande should i use ?