salt icon indicating copy to clipboard operation
salt copied to clipboard

nova salt-cloud -P Private IPs returned, but not public. Checking for misidentified IPs

Open stamak opened this issue 9 years ago • 8 comments

Description of Issue/Question

Private IPs returned, but not public. Checking for misidentified IPs

salt-cloud driver nova: salt-cloud -P -m multiple_vms.map assigns floating ip for ONLY for one VM for others rises such kind of error

[WARNING ] Private IPs returned, but not public. Checking for misidentified IPs
[WARNING ] 10.64.137.28 is a private IP

without -P, (e.g. salt-cloud -m multiple_vms.map) - all is great

Setup

provider

os-my-proj-provider:
  driver: nova
  insecure: True
  use_keystoneauth: False
  auth_version: 2
  identity_url: https://xxx.xxx.xxx.xxx:5000/v2.0
  compute_region: RegionOne
  compute_name: nova
  tenant: my-proj
  user: my-proj-admin
  password: mypass
  ssh_key_name: my-proj
  ssh_key_file: /etc/salt/pki/os-my-proj-ssh-key.pem
  ssh_connect_timeout: 120
  wait_for_passwd_timeout: 200
  wait_for_passwd_maxtries: 500

profile

os-my-proj-ubuntu-16.04-m1-small:                                                                                        [84/876]
  provider: os-my-proj-provider
  size: m1.small
  image: ubuntu-16.04
  ssh_username: ubuntu
  networks:
    - net-id: 26871ef8-3454-98e7-86eafb9cf73b
  floating_ip:
    auto_assign: True
    pool: my_floating_net

map:

os-my-proj-ubuntu-16.04-m1-large:
  - my-node2-my-proj.demo:
  - my-node3-my-proj.demo:
  - my-node1-my-proj.demo:

Versions Report

salt-master --versions-report                                                                      [10/728]
Salt Version:
           Salt: 2017.7.0

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.4.2
      docker-py: Not Installed
          gitdb: 0.6.4
      gitpython: 1.0.1
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.3
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.12 (default, Nov 19 2016, 06:48:10)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.2.0
           RAET: Not Installed
          smmap: 0.9.0
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: Ubuntu 16.04 xenial
         locale: UTF-8
        machine: x86_64
        release: 4.4.0-87-generic
         system: Linux
        version: Ubuntu 16.04 xenial

stamak avatar Jul 31 '17 14:07 stamak

ZD-1641

rickh563 avatar Jul 31 '17 15:07 rickh563

Is this fixed by https://github.com/saltstack/salt/pull/42253 ?

@gtmanfred ?

UtahDave avatar Jul 31 '17 19:07 UtahDave

the fix is for the openstack driver, this issue is for the nova driver.

Though, it looks like a similar issue may have been introduced.

https://github.com/saltstack/salt/commit/58459adbe86c276d3d64ac31110d9a5463460c68

For the map, does only 1 ip get allocated for all the servers in the map?

gtmanfred avatar Jul 31 '17 23:07 gtmanfred

@gtmanfred the problem is still exists on 2016.11.6 Was it backported to 2016.11.6?

stamak avatar Aug 05 '17 19:08 stamak

It was fixed on the openstack driver, not the nova driver. But it looks like a similar bug was introduced for the nova driver

For the map, does only 1 public ip get allocated for all the servers in the map when building in parallel?

gtmanfred avatar Aug 07 '17 12:08 gtmanfred

Yes, it allocates only 1 public ip

samodid avatar Aug 15 '17 13:08 samodid

Then it is the same problem, just in different code. I will work on getting it fixed this week.

Thanks for reporting. Daniel

gtmanfred avatar Aug 15 '17 13:08 gtmanfred

This should be fixed by #42940 I am working on testing it now.

Daniel

gtmanfred avatar Aug 15 '17 14:08 gtmanfred