Multiple IPs in hostname
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, shell, ubuntu
- Domain
- cloud, operating-systems
Research direction
Start by locating and reading set_hostname.sh, then reproduce the issue on the ubuntu-noble-24.04-nogui image using the listed Docker and network-interface steps. Verify that the script selects one IP address and that the resulting hostname no longer concatenates multiple addresses.
Written by the indexing model from the issue text.
Description
Describe the bug
When a VM has multiple interfaces the hostname set merges all of those IPs together. This can be seen when you install docker. Docker create a VLAN on the VM which gives it another interface.
oxg98278@host-172-16-115-102172-17-0-1:~$ hostname
host-172-16-115-102172-17-0-1.nubes.stfc.ac.uk
To Reproduce
Steps to reproduce the behavior:
- Build VM with 'ubuntu-noble-24.04-nogui' image
- SSH into VM
- Install docker
docker network listshows bridge networkip ashows docker0 interfacehostname -Ishows more than one IP address
Expected behavior
The set_hostname.sh script should select one IP address and create the hostname from that.
Screenshots
oxg98278@host-172-16-115-102:~$ docker network ls
NETWORK ID NAME DRIVER SCOPE
5b677cf3c947 bridge bridge local
cfd8aef05e32 host host local
1ea70f3f0b89 none null local
oxg98278@host-172-16-115-102:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether fa:ca:aa:14:99:34 brd ff:ff:ff:ff:ff:ff
inet 172.16.115.102/24 metric 100 brd 172.16.115.255 scope global dynamic enp3s0
valid_lft 86320sec preferred_lft 86320sec
inet6 fe80::f8ca:aaff:fe14:9934/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 76:c9:82:10:82:46 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
oxg98278@host-172-16-115-102:~$ hostname -I
172.16.115.102 172.17.0.1
Details (please complete the following information):
- Image Name: ubuntu-noble-24.04-nogui
- Image ID: b2438141-da23-49ba-9cec-33a8eb729738
- VM ID: Any VM
- JIRA Ticket Ref: https://stfc.atlassian.net/jira/servicedesk/projects/STFCCLOUD/queues/custom/1167/STFCCLOUD-44709
Additional context
Add any other context about the problem here.
- Dominant language
- Perl
- Stars
- 0
- Forks
- 3
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 14
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stfc/cloud-image-builders
-
enhancement OS Images
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stfc/cloud-image-builders#218 ·
Maintainers usually reply within 1 day
-
bug OS Images
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stfc/cloud-image-builders#200 ·
Maintainers usually reply within 1 day
-
enhancement OS Images
Difficulty 4/5 3-5 days Newbie friendliness 45/100
stfc/cloud-image-builders#220 · 1 comment ·
Maintainers usually reply within 1 day
-
bug OS Images
Difficulty 3/5 1-2 days Newbie friendliness 55/100
stfc/cloud-image-builders#219 ·
Maintainers usually reply within 1 day
-
enhancement OS Images
Difficulty 3/5 1-2 days Newbie friendliness 65/100
stfc/cloud-image-builders#204 ·
Maintainers usually reply within 1 day
All issues in stfc/cloud-image-builders
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RotherOSS/otobo#6286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
LMS-Community/slimserver#1692 · 6 comments ·
Maintainers usually reply within 1 day
-
fix(api): API v3 Product Read ignores request language (lc) for sample products and image URLsPossibly taken @muntasir-396 claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openfoodfacts/openfoodfacts-server#15042 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day