Skip to content

Commit df41fac

Browse files
authored
Merge pull request #30 from bobuhiro11/support_ubuntu2404
Support Ubuntu24.04.
2 parents 7e52878 + 5793512 commit df41fac

4 files changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/action.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
pull_request:
88
jobs:
99
lint:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: hadolint for controller
1414
run: docker run -e "HADOLINT_IGNORE=DL3008" --rm -i hadolint/hadolint < controller/Dockerfile
1515
- name: hadolint for compute
1616
run: docker run -e "HADOLINT_IGNORE=DL3008" --rm -i hadolint/hadolint < compute/Dockerfile
1717
test:
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Remove unused files
2121
run: |
@@ -29,17 +29,17 @@ jobs:
2929
with:
3030
version: v2.17.3
3131
legacy: true
32-
- run: docker-compose --version
32+
- run: docker compose version
3333
- name: Build Images
3434
run: |
35-
docker-compose --file docker-compose.build.yaml up -d
35+
docker compose --file docker-compose.build.yaml up -d
3636
sleep 1800
37-
docker-compose --file docker-compose.build.yaml logs -t --tail=100
38-
docker-compose --file docker-compose.build.yaml exec -T --user stack controller /bin/test.bash
37+
docker compose --file docker-compose.build.yaml logs -t --tail=100
38+
docker compose --file docker-compose.build.yaml exec -T --user stack controller /bin/test.bash
3939
for c in controller compute-1 compute-2; do
40-
docker-compose --file docker-compose.build.yaml exec -T $c /bin/bash -c /bin/pre-commit.bash
40+
docker compose --file docker-compose.build.yaml exec -T $c /bin/bash -c /bin/pre-commit.bash
4141
done
42-
docker-compose --file docker-compose.build.yaml stop
42+
docker compose --file docker-compose.build.yaml stop
4343
- name: Login to Docker Hub
4444
uses: docker/login-action@v2
4545
with:
@@ -60,6 +60,6 @@ jobs:
6060
tag: "${{ github.ref == 'refs/heads/main' && 'latest' || github.sha }}"
6161
run: |
6262
sed -i -e "s/image:.*/&:$tag/g" docker-compose.yaml
63-
docker-compose up -d
63+
docker compose up -d
6464
sleep 180
65-
docker-compose exec -T --user stack controller /bin/test.bash
65+
docker compose exec -T --user stack controller /bin/test.bash

compute/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
EXPOSE 80 5000 8773 8774 8775 8776 9292
44
ENV DEBIAN_FRONTEND=noninteractive
5-
ENV DEVSTACK_COMMIT=ad029c0e8b66d81889c80d4a68b4654dd169fecf
5+
ENV DEVSTACK_COMMIT=608ae718fca61e557b315f87900a54a7fb40b07e
66

77
ENV OS_REGION_NAME=RegionOne
88
ENV OS_PROJECT_DOMAIN_ID=default
@@ -24,7 +24,7 @@ RUN apt-get update \
2424
systemd \
2525
sudo \
2626
iproute2 \
27-
lsb \
27+
lsb-release \
2828
git \
2929
curl \
3030
init \

controller/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
EXPOSE 80 5000 8773 8774 8775 8776 9292
44
ENV DEBIAN_FRONTEND=noninteractive
5-
ENV DEVSTACK_COMMIT=ad029c0e8b66d81889c80d4a68b4654dd169fecf
5+
ENV DEVSTACK_COMMIT=608ae718fca61e557b315f87900a54a7fb40b07e
66

77
ENV OS_REGION_NAME=RegionOne
88
ENV OS_PROJECT_DOMAIN_ID=default
@@ -24,7 +24,7 @@ RUN apt-get update \
2424
systemd \
2525
sudo \
2626
iproute2 \
27-
lsb \
27+
lsb-release \
2828
git \
2929
curl \
3030
init \

test.bash

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ openstack network agent list
1212
net_id=$(openstack network show private -f json 2>/dev/null | jq -r .id | tr -d "\r\n")
1313
image=$(openstack image list | awk '/cirros/ { print $4 }')
1414

15-
nova boot --image $image --flavor m1.medium \
15+
openstack server create --image $image --flavor m1.medium \
1616
--nic net-id=$net_id --availability-zone=nova:controller testvm
1717
sleep 60
1818

1919
ip=$(openstack server show testvm -f json | jq -r '.addresses.private[0]')
2020

21-
nova list
22-
nova show testvm | grep ACTIVE
23-
nova console-log testvm
24-
nova console-log testvm | grep $ip
25-
nova delete testvm
21+
openstack server list
22+
openstack server show testvm | grep ACTIVE
23+
openstack server delete testvm
2624

2725
sudo journalctl --no-pager -n 300 -eu devstack@n-cpu
2826
sudo journalctl --no-pager -n 300 -eu devstack@q-agt

0 commit comments

Comments
 (0)