Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows FQDN constructed from internal hostname rather than Openstack instance name #38

Open
cbrit opened this issue Nov 20, 2017 · 2 comments

Comments

@cbrit
Copy link

cbrit commented Nov 20, 2017

Hello;
Kitchen-nodes has been working great for CentOS instances, but I'm having an issue where my Windows 2012 R2 instance will populate the nodes json with the internal windows hostname (like WIN-123BFKDS812 for example) rather than the "kitchen" name for the node defined by the Openstack instance name.

kitchen.yml info

driver:
  name: openstack

provisioner:
  name: nodes

platforms:
  - name: centos-6.7
  - name: windows-2012r2-standard-gui

...

 - name: default
    includes:
      - windows-2012r2
    run_list:
      - recipe[cookbook::recipe]

Here is a normal (working) centos nodes json "automatic" section

  "automatic": {
    "ipaddress": "10.1.1.1",
    "platform": "centos",
    "fqdn": "username-tk-default-cookbook-env.domain.com",
    "recipes": [
      "cookbook::recipe"
    ]
  }

and my incorrect windows nodes json "automatic" section

  "automatic": {
    "ipaddress": "10.1.1.2",
    "platform": "windows",
    "fqdn": "WIN-1OQLPP07BAL.domain.com",
    "recipes": [
      "cookbook::recipe"
    ]
  }

I need to to populate the "fqdn" attribute with something similar to the centos nodes. I saw in the Changelog there were similar issues addressed; is this some setting that I am missing?

Changed some of the info in code for private reasons.

Thanks.

EDIT: Removed the error message after realizing it is generated by a recipe, not kitchen.

@cbrit cbrit changed the title FQDN constructed from internal hostname rather than Openstack instance name Windows FQDN constructed from internal hostname rather than Openstack instance name Nov 20, 2017
@mwrock
Copy link
Owner

mwrock commented Nov 20, 2017

That is actually by design. The fqdn should match the hostname of the machine.

@cbrit
Copy link
Author

cbrit commented Nov 20, 2017

Thanks @mwrock, I resorted to using node['cloud']['public_hostname'] provided by Ohai to get the value I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants