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

1.12.58: build_db.py broken with Postgresql #243

Closed
jouvin opened this issue May 18, 2018 · 3 comments
Closed

1.12.58: build_db.py broken with Postgresql #243

jouvin opened this issue May 18, 2018 · 3 comments

Comments

@jouvin
Copy link
Contributor

jouvin commented May 18, 2018

build_db.py in 1.12.58 has been modified to support both IPv4 and IPv6. Network CIDR constraint has been defined with a condition on the IP version and the syntax used doesn't seem to work with Postgres, leading to a failure to initialize the DB. The problem is https://github.com/quattor/aquilon/blob/upstream/lib/aquilon/aqdb/model/network.py#L147 in 1.12.58.

The versions used in my case were Postgres 9.6 (but I guess that the CentOS-provided 9.2 will exhibit the same problem) and SQLAlchemy 1.2.7.

A workaround is to remove the condition and define CIDR to be 32 bit but this breaks the IPv6 support. A clean solution is needed.

This issue has been open in the wrong repo. Closing it. Replaced by quattor/aquilon#81.

@jrha
Copy link
Member

jrha commented May 20, 2018

@jouvin, for the record, which version of Postgresql and sqlalchemy are you using?

@jouvin
Copy link
Contributor Author

jouvin commented May 21, 2018

@jrha sorry for forgetting mentioning it. Description updated.

@jouvin
Copy link
Contributor Author

jouvin commented May 21, 2018

Reopening the issue in the aquilon repository....

@jouvin jouvin closed this as completed May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants