Public bug reported:

$ python3 -c "from cloudinit.sources.DataSourceAzure import get_hostname; 
get_hostname()"
Traceback (most recent call last):
  File "/home/dojordan/code/cloud-init/cloudinit/util.py", line 1875, in subp
    env=env, shell=shell)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: b'h'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/dojordan/code/cloud-init/cloudinit/sources/DataSourceAzure.py", 
line 226, in get_hostname
    return util.subp(hostname_command, capture=True)[0].strip()
  File "/home/dojordan/code/cloud-init/cloudinit/util.py", line 1881, in subp
    stderr="-" if decode else b"-")
cloudinit.util.ProcessExecutionError: Unexpected error while running command.
Command: hostname
Exit code: -
Reason: [Errno 2] No such file or directory: b'h'
Stdout: -
Stderr: -

This is on latest master (commit
1e2e810f3f7cb6a163a0229ac37037e8c6744d72). Due to this, any VM
provisioning will likely fail on Azure. Not entirely sure how
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-
init/+merge/338586 passed the Azure test.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1754495

Title:
  get_hostname on DataSourceAzure fails

Status in cloud-init:
  New

Bug description:
  $ python3 -c "from cloudinit.sources.DataSourceAzure import get_hostname; 
get_hostname()"
  Traceback (most recent call last):
    File "/home/dojordan/code/cloud-init/cloudinit/util.py", line 1875, in subp
      env=env, shell=shell)
    File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
      restore_signals, start_new_session)
    File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: b'h'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/home/dojordan/code/cloud-init/cloudinit/sources/DataSourceAzure.py", 
line 226, in get_hostname
      return util.subp(hostname_command, capture=True)[0].strip()
    File "/home/dojordan/code/cloud-init/cloudinit/util.py", line 1881, in subp
      stderr="-" if decode else b"-")
  cloudinit.util.ProcessExecutionError: Unexpected error while running command.
  Command: hostname
  Exit code: -
  Reason: [Errno 2] No such file or directory: b'h'
  Stdout: -
  Stderr: -

  This is on latest master (commit
  1e2e810f3f7cb6a163a0229ac37037e8c6744d72). Due to this, any VM
  provisioning will likely fail on Azure. Not entirely sure how
  https://code.launchpad.net/~smoser/cloud-init/+git/cloud-
  init/+merge/338586 passed the Azure test.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1754495/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to