No IP address shown in log file of OVF appliance running in headless mode

Description

User Impact:

Significant portions of the users, who run OVF on some Server without UI  (headless mode) will not be able to use OVF because they'll don't know IP address of PMM server based on our current instructions  

 

PMM Server as a Virtual Appliance page contains a script that imports the PMM Server appliance and configures it to bridge the en0 adapter from the host. Then the script routes console output from the appliance to /tmp/pmm-server-console.log. This is done because the script then starts the appliance in headless (without the console) mode.

Steps to reproduce:

  1. Import image
    VBoxManage import pmm-server-2.11.1.ova

  2. Modify NIC settings if needed
    VBoxManage list bridgedifs
    VBoxManage modifyvm 'PMM Server 2.11.1' --nic1 bridged --bridgeadapter1 'en0: Wi-Fi (AirPort)'

  3. Log console output into file
    VBoxManage modifyvm 'PMM Server 2.11.1' --uart1 0x3F8 4 --uartmode1 file /tmp/pmm-server-console.log

  4. Start instance
    VBoxManage startvm --type headless 'PMM Server 2.11.1'

  5. Wait for 1 minute and get IP address from the log
    sleep 60
    grep cloud-init /tmp/pmm-server-console.log

Actual result:
The 'pmm-server-console.log' doesn't contain IP adress.

Expected result:
The user can get the IP address from the log.

 

 

Note: desired state  - current instructions work, no actions on the user side. If this is completely not possible or  significant impact - let's discuss changes we can do 

How to test

None

How to document

None

Attachments

1
  • 19 Nov 2020, 06:31 PM

Smart Checklist

Activity

Show:

Alex Demidoff December 29, 2020 at 10:30 AM

Nailya Kutlubaeva December 29, 2020 at 10:14 AM

IP address is displayed in pmm-server-console.log but it cannot be found with "grep cloud-init" command because there is no "cloud-init" line:

[ OK ] Started Authorization Manager. Starting firewalld - dynamic firewall daemon... CentOS Linux 7 (Core) Kernel 3.10.0-1160.11.1.el7.x86_64 on an x86_64 IP: 192.168.0.23

I checked with PMM 2.2.2 version and "grep cloud-init pmm-server-console.log" returns:

nailyakutlubaeva$ grep cloud-init /tmp/pmm-server-console2.log Starting Initial cloud-init job (pre-networking)... [ 6.920678] cloud-init[791]: Cloud-init v. 18.5 running 'init-local' at Tue, 29 Dec 2020 11:47:04 +0000. Up 6.88 seconds. [ OK ] Started Initial cloud-init job (pre-networking). Nailyas-MacBook-Pro:Work nailyakutlubaeva$ grep cloud-init /tmp/pmm-server-console2.log Starting Initial cloud-init job (pre-networking)... [ 6.920678] cloud-init[791]: Cloud-init v. 18.5 running 'init-local' at Tue, 29 Dec 2020 11:47:04 +0000. Up 6.88 seconds. [ OK ] Started Initial cloud-init job (pre-networking). Starting Initial cloud-init job (metadata service crawler)... [ 13.102396] cloud-init[1214]: Cloud-init v. 18.5 running 'init' at Tue, 29 Dec 2020 11:47:11 +0000. Up 13.08 seconds. [ 13.139985] cloud-init[1214]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++ [ 13.140242] cloud-init[1214]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+ [ 13.140403] cloud-init[1214]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | [ 13.140558] cloud-init[1214]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+ [ 13.140716] cloud-init[1214]: ci-info: | eth0 | True | 192.168.0.25 | 255.255.255.0 | global | 08:00:27:45:2d:0d | [ 13.140868] cloud-init[1214]: ci-info: | eth0 | True | fe80::a00:27ff:fe45:2d0d/64 | . | link | 08:00:27:45:2d:0d | [ 13.141018] cloud-init[1214]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | [ 13.141168] cloud-init[1214]: ci-info: | lo | True | ::1/128 | . | host | . | [ 13.141318] cloud-init[1214]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+

It was discussed that we should changed our documentation to use the next command to get IP address:

grep IP: /tmp/pmm-server-console.log
Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Fix versions

Story Points

Sprint

Environment

Latest OVF build

Smart Checklist

Created November 19, 2020 at 6:21 PM
Updated March 6, 2024 at 3:37 AM
Resolved December 29, 2020 at 10:25 AM

Flag notifications