Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge latest changes from upstream #7

Merged
merged 4 commits into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM docker.io/centos:centos7

RUN yum install -y python-requests && \
curl https://raw.githubusercontent.com/openstack/tripleo-repos/master/tripleo_repos/main.py | python - current-tripleo && \
curl https://raw.githubusercontent.com/openstack/tripleo-repos/master/tripleo_repos/main.py | python - -b stein current-tripleo && \
yum update -y && \
yum install -y python-gunicorn openstack-ironic-api openstack-ironic-conductor crudini \
yum install -y openstack-ironic-api openstack-ironic-conductor crudini \
iproute iptables dnsmasq httpd qemu-img-ev iscsi-initiator-utils parted gdisk ipxe-bootimgs psmisc sysvinit-tools \
mariadb-server python-PyMySQL python2-chardet && \
yum install -y python-ironic-prometheus-exporter && \
yum clean all

RUN mkdir /tftpboot && \
Expand All @@ -18,16 +17,13 @@ RUN crudini --merge /etc/ironic/ironic.conf < /tmp/ironic.conf && \

COPY ./runironic-api.sh /bin/runironic-api
COPY ./runironic-conductor.sh /bin/runironic-conductor
COPY ./runironic-exporter.sh /bin/runironic-exporter
COPY ./rundnsmasq.sh /bin/rundnsmasq
COPY ./runhttpd.sh /bin/runhttpd
COPY ./runmariadb.sh /bin/runmariadb
COPY ./configure-ironic.sh /bin/configure-ironic.sh

# TODO(dtantsur): remove these 3 scripts and squash runexporterapp into
# runironic-exporter if we decide to stop supporting running all 3 processes
# via one entry point.
COPY ./runexporterapp.sh /bin/runexporterapp
# TODO(dtantsur): remove these 2 scripts if we decide to
# stop supporting running all 2 processes via one entry point.
COPY ./runhealthcheck.sh /bin/runhealthcheck
COPY ./runironic.sh /bin/runironic

Expand Down
1 change: 0 additions & 1 deletion configure-ironic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ interfaces = $IRONIC_IP
EOF

mkdir -p /shared/html
mkdir -p /shared/ironic_prometheus_exporter
3 changes: 1 addition & 2 deletions inspector.ipxe
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
:retry_boot
echo In inspector.ipxe
imgfree
# NOTE(dtantsur): keep inspection kernel params in [mdns]params in ironic-inspector-image
kernel --timeout 60000 http://IRONIC_IP:HTTP_PORT/images/ironic-python-agent.kernel ipa-inspection-callback-url=mdns systemd.journald.forward_to_console=yes BOOTIF=${mac} ipa-debug=1 initrd=ironic-python-agent.initramfs || goto retry_boot
kernel --timeout 60000 http://IRONIC_IP:HTTP_PORT/images/ironic-python-agent.kernel ipa-inspection-callback-url=http://IRONIC_IP:5050/v1/continue ipa-inspection-collectors=default,extra-hardware,logs systemd.journald.forward_to_console=yes BOOTIF=${mac} ipa-debug=1 ipa-inspection-dhcp-all-interfaces=1 ipa-collect-lldp=1 initrd=ironic-python-agent.initramfs || goto retry_boot
initrd --timeout 60000 http://IRONIC_IP:HTTP_PORT/images/ironic-python-agent.initramfs || goto retry_boot
boot
7 changes: 0 additions & 7 deletions ironic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ deploy_logs_local_path = /shared/log/ironic/deploy

[conductor]
automated_clean = true
enable_mdns = True
send_sensor_data = true

[deploy]
default_boot_option = local
Expand All @@ -33,11 +31,6 @@ http_root = /shared/html/
[dhcp]
dhcp_provider = none

[oslo_messaging_notifications]
driver = prometheus_exporter
location = /shared/ironic_prometheus_exporter
transport_url = fake://

[pxe]
images_path = /shared/html/tmp
instance_master_path = /shared/html/master_images
Expand Down
6 changes: 0 additions & 6 deletions runexporterapp.sh

This file was deleted.

7 changes: 0 additions & 7 deletions runironic-exporter.sh

This file was deleted.

1 change: 0 additions & 1 deletion runironic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ mkdir -p /shared/log/ironic
/usr/bin/ironic-api --log-file /shared/log/ironic/ironic-api.log &

/bin/runhealthcheck "ironic" &>/dev/null &
/bin/runexporterapp &

sleep infinity