Skip to content

Conversation

@jagoleni
Copy link

This PR copies the cinder nanny code from the soon to be deprecated nanny repo (https://github.com/sapcc/openstack-nannies). In a still to come PR, the nanny code will be refactored:

  • Cinder nannies will be moved to cmd directory
  • Bash code will be removed
  • setup.cfg file moving will be removed
  • Nanny will make use of already existing Openstack functionality

In this PR, nanny code is just formatted differently to pass the linting check, the code itself has not been modified.

Copy link

@hemna hemna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first quick pass

unset http_proxy https_proxy all_proxy no_proxy

echo "INFO: copying cinder config files to /etc/cinder"
cp -vrL /cinder-etc/* /etc/cinder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a deployment issue? I don't think we should be copying files around in a deployed container.


# cinder is now using proxysql by default in its config - change that back to a normal
# config for the nanny as we do not need it and do not have the proxy around by default
sed -i 's,@/cinder?unix_socket=/run/proxysql/mysql.sock&,@cinder-mariadb/cinder?,g' "${DB_CONFIG}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also a deployment issue. temporary hacks turn into permanent hacks.

@jagoleni jagoleni marked this pull request as draft March 17, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants