emilienm / devstack-action Goto Github PK
View Code? Open in Web Editor NEWGithub actions for Devstack
License: Apache License 2.0
Github actions for Devstack
License: Apache License 2.0
Workflows have the following warning:
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout, actions/checkout
Need to update to v3
to use Node.js 16
Hello,
I saw you dropped support of unmaintained releases - #21
But while it is not recommended to install these releases, a lot of people might have them installed internally and I have to check my library against them for backward compatibility. Are you planning to support them or would you accept PR with support for them?
Hello,
I'm trying to use devstack-action
similar as it is used in gophercloud to run integration tests in velero plugin for openstack repository that I maintain.
The part of code with workaround for docker.io actually removes docker*
packages from the VM (Tested with ubuntu-20.04).
- name: Workaround for docker.io
run: |
sudo apt-get install -y runc || true
shell: bash
This make me unable to perform test in which I need docker to create kind
cluster and deploy devstack in the same job.
Solution for me would be to insert condition (input variable probably) to skip this workaround part of the code. I tested without it and for my simple use-case (swift+cinder+keystone+mysql) devstack deploys correctly. I don't know what exactly is the workaround for, so maybe also adding a comment there would help others to understand.
If you agree with my suggestion I can open the PR for the new version.
Thank you for your help.
Job link:
https://github.com/Jagadeeshftw/Docker-CICD/actions/runs/7513108110/job/20454500831
My workflow file:
name: Openstack Deployment
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy devstack
uses: EmilienM/[email protected]
with:
branch: stable/xena
conf_overrides:
CINDER_ISCSI_HELPER=tgtadm
enabled_services: 's-account,s-container,s-object,s-proxy'
Hi.
I'm trying to implement a PR check on my ansible collection project and wanted to start by checking a role that creates VMs on OpenStack. I've created the github action (this one) but my roles fail because Ansible is not able to connect to the auth service.
On the devstack-action
log I see a message that seems to indicate that the auth service is not available (line 17810).
+ home/runner/work/k8s-infra/k8s-infra/devstack/tools/create_userrc.sh:main:241 : read project_id project_name desc enabled
Failed to discover available identity versions when contacting http://localhost:5000/v3/. Attempting to parse version from URL.
Unable to establish connection to http://localhost:5000/v3/auth/tokens: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb37dee6d10>: Failed to establish a new connection: [Errno 111] Connection refused'))
On my Ansible log I have a similar message.
TASK [openstack_vm : Get VM information] ***************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Failed to discover available identity versions when contacting http://localhost:5000/v3/. Attempting to parse version from URL.
The services I'm enabling are the following: enabled_services: 's-account,s-container,s-object,s-proxy'
Do you know if I should be able to use this service? Would I have to enable a specific service for this?
I'm using version EmilienM/[email protected]
.
Thank you.
The following conf_overrides
causes devstack-action to fail in a non obvious way:
conf_overrides: |
[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
# This must stay at the end to allow any overrides
if [[ "[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
" != "" ]]; then
echo "[[post-config|/etc/neutron/port_binding.yaml]]
"create_port:binding:profile": "rule:admin_only or rule:service_api"
" >> local.conf
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
/home/runner/work/_temp/8e8cc504-91e3-483d-ae82-3043be538428.sh: line 34: conditional binary operator expected
We should use heredoc to insert overrides rather than echo to remove the need to shell escape the string.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.