File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -751,6 +751,21 @@ function get_random_port {
751751}
752752
753753
754+ function write_devstack_version {
755+ pushd $TOP_DIR
756+ local git_version=" "
757+ git_version=$( git log --format=" %H %s %ci" -1)
758+ cat - > /tmp/devstack-version << EOF
759+ #!/bin/bash
760+
761+ echo "DevStack Version: ${DEVSTACK_SERIES} - ${git_version} "
762+ echo "OS Version: ${os_VENDOR} ${os_RELEASE} ${os_CODENAME} "
763+
764+ EOF
765+ sudo install -m 755 /tmp/devstack-version /usr/local/bin/devstack-version
766+ rm /tmp/devstack-version
767+ }
768+
754769# Restore xtrace
755770$_XTRACE_FUNCTIONS
756771
Original file line number Diff line number Diff line change @@ -216,6 +216,9 @@ if [[ ! -r $TOP_DIR/stackrc ]]; then
216216fi
217217source $TOP_DIR /stackrc
218218
219+ # this installs a devstack-version script to make it easy to report the version back
220+ write_devstack_version
221+
219222# Warn users who aren't on an explicitly supported distro, but allow them to
220223# override check and attempt installation with ``FORCE=yes ./stack``
221224if [[ ! ${DISTRO} =~ (xenial| yakkety| zesty| stretch| jessie| f24| f25| opensuse-42.2| rhel7| kvmibm1) ]]; then
@@ -1521,19 +1524,28 @@ fi
15211524
15221525# Warn that a deprecated feature was used
15231526if [[ -n " $DEPRECATED_TEXT " ]]; then
1524- echo_summary " WARNING: $DEPRECATED_TEXT "
1527+ echo
1528+ echo -e " WARNING: $DEPRECATED_TEXT "
1529+ echo
15251530fi
15261531
15271532# If USE_SYSTEMD is enabled, tell the user about using it.
15281533if [[ " $USE_SYSTEMD " == " True" ]]; then
1534+ echo
15291535 echo " Services are running under systemd unit files."
15301536 echo " For more information see: "
15311537 echo " https://docs.openstack.org/developer/devstack/systemd.html"
1538+ echo
15321539fi
15331540
1541+ # devstack version
1542+ devstack-version
1543+ echo
1544+
15341545# Indicate how long this took to run (bash maintained variable ``SECONDS``)
15351546echo_summary " stack.sh completed in $SECONDS seconds."
15361547
1548+
15371549# Restore/close logging file descriptors
15381550exec 1>&3
15391551exec 2>&3
Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ REQUIREMENTS_DIR=$DEST/requirements
272272# Setting the variable to 'ALL' will activate the download for all
273273# libraries.
274274
275+ DEVSTACK_SERIES=" pike"
275276
276277# #############
277278#
You can’t perform that action at this time.
0 commit comments