New Question
0

Random - Truncating host name for Netbios compatibility

asked 2019-04-10 19:54:14 +0200

shauncitrix gravatar image

Randomly, we see where a VM is running for 20+ days and then we see this in the logs below. What is setting off this name change? This name change causes major outage. We can't have cloudbase-init randomly renaming machines.

2019-03-04 12:21:59.755 1144 INFO cloudbaseinit.init [-] Executing plugins for stage 'MAIN': 2019-03-04 12:21:59.755 1144 INFO cloudbaseinit.init [-] Executing plugin 'SetHostNamePlugin' 2019-03-04 12:21:59.770 1144 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2019-03-04 12:21:59.770 1144 DEBUG cloudbaseinit.metadata.services.base [-] Using cached copy of metadata: '2009-04-04/meta-data/local-hostname' _getcache_data c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\services\base.py:73 2019-03-04 12:21:59.770 1144 WARNING cloudbaseinit.utils.hostname [-] Truncating host name for Netbios compatibility. Old name: frank-frank-2019-dir-ltsr---windows2016dc-scalr-1, new name: frank-frank-201 2019-03-04 12:21:59.786 1144 INFO cloudbaseinit.utils.hostname [-] Setting hostname: frank-frank-201

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-05-31 10:35:51 +0200

lpetrut gravatar image

updated 2019-05-31 10:37:30 +0200

Hi,

There is a config option for this: netbios_host_name_compatibility. Cloudbase-init will no longer truncate host names if you disable it.

Now, this plugin is supposed to run at boot time just once, when the instance gets created. If I understand correctly, you're saying that the plugin runs after 20 days of uptime ?! That would be really concerning.

Are you triggering cloudbase-init? Can you please provide full logs?

Thanks,

Lucian Petrut

edit flag offensive delete link more

Comments

I am unable to attach logs here, can you provide me a means to upload logs to you?

shauncitrix gravatar imageshauncitrix ( 2019-06-19 23:37:20 +0200 )edit

You may use pastebin if the log is not too large, otherwise some file sharing service such as dropbox, onedrive, etc.

lpetrut gravatar imagelpetrut ( 2019-06-21 11:23:33 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-10 19:54:14 +0200

Seen: 533 times

Last updated: May 31 '19