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

inconsistent version formats #98

Closed
nickbroon opened this issue Oct 1, 2018 · 6 comments
Closed

inconsistent version formats #98

nickbroon opened this issue Oct 1, 2018 · 6 comments
Labels

Comments

@nickbroon
Copy link

I think the mix of version format means that this role cannot easily be install. The only work around is to specify a specific version.

- downloading role 'sshd', owned by willshersystems
 [WARNING]: - willshersystems.sshd was NOT installed successfully: Unable to
compare role versions (v0.7.2, 0.2.0, 0.4.1, 0.3.0, 0.4.5, 0.4.3, 0.2.5,
v0.7.1, v0.4.8, v0.4.10, v0.4.9, 0.1.0, 0.5.1, v0.4.7, v0.4.6, v0.6.2, v0.5,
v0.7.0, v0.6.0, 0.4.4, 0.2.3, 0.4.2, 0.4.0, 0.2.1, v0.6.1, 0.2.2, 0.3.1, 0.2.4,
0.3.2) to determine the most recent version due to incompatible version
formats. Please contact the role author to resolve versioning conflicts, or
specify an explicit role version to install.

Would it be possible to settle on one format, and delete the versions that use the other?

@nickbroon
Copy link
Author

This has effected other roles as well. Examples include:
yatesr/ansible-timezone#7
mimacom/ansible-role-bamboo-agent#5

dzhus added a commit to dzhus/globalchypre that referenced this issue Nov 12, 2018
tersmitten.fail2ban is gone from Galaxy for some reason

Pin willshersystems.sshd version as a workaround for
willshersystems/ansible-sshd#98
@cognifloyd
Copy link

This happens when telling ansible-galaxy to install this role, and the role is already installed. Earlier versions of ansible-galaxy only checked to see if the versions didn't match, and then download the latest. But, newer versions are actually trying to compare the downloaded version with the latest version so that the download only happens if the latest version is newer (and not equal) to the current version. Thus, the error message about an inability to compare the versions with and with the prefixed 'v'.

@cognifloyd
Copy link

https://twitter.com/cognifloyd/status/1064645755208642560

To fix galaxy access to willshersystems.sshd could you delete, or prepend v on, these tags? 0.2.0, 0.4.1, 0.3.0, 0.4.5, 0.4.3, 0.2.5, 0.1.0, 0.5.1, 0.4.4, 0.2.3, 0.4.2, 0.4.0, 0.2.1, 0.2.2, 0.3.1, 0.2.4, 0.3.2

@cognifloyd
Copy link

cognifloyd commented Nov 19, 2018

for tag in 0.2.0 0.4.1 0.3.0 0.4.5 0.4.3 0.2.5 0.1.0 0.5.1 0.4.4 0.2.3 0.4.2 0.4.0 0.2.1 0.2.2 0.3.1 0.2.4 0.3.2; do
git tag v${tag} ${tag}^{}
git tag -d ${tag}
git push origin :refs/tags/${tag}
done
git push --tags

@mattwillsher
Copy link
Member

Thank @cognifloyd
I've now done this and all tags are updated in Galaxy.

git-harry added a commit to git-harry/os-ansible-deployment that referenced this issue Nov 20, 2018
The role ansible-sshd has replaced the tag 0.4.5 with v0.4.5 [1] causing
a failure when attempting to install the role defined in this
repository. This change updates the version defined to the SHA
referenced by the tag v0.4.5.

JIRA: RE-2208

[1] willshersystems/ansible-sshd#98

Change-Id: I82f9317783b8f8d5e908028c5cf791825ee59aa4
git-harry added a commit to git-harry/os-ansible-deployment that referenced this issue Nov 20, 2018
The role ansible-sshd has replaced the tag 0.4.5 with v0.4.5 [1] causing
a failure when attempting to install the role defined in this
repository.

JIRA: RE-2208

[1] willshersystems/ansible-sshd#98

Change-Id: I82f9317783b8f8d5e908028c5cf791825ee59aa4
openstack-gerrit pushed a commit to openstack/openstack-ansible that referenced this issue Nov 23, 2018
The role ansible-sshd has removed existing tags and replaced them
with equivalents in a different format, e.g. 0.4.5 with v0.4.5, [1].
This is causing a failure when attempting to install the role defined
in this repository.

[1] willshersystems/ansible-sshd#98

In order to help get this through the gate, we also disable nested virt
when in OpenStack-CI due to issues at some providers, as was done in
Ifae3425b66254aa655df5b6bb95896da1cccc32a and we ensure that tests in
OpenStack-CI make use of the reverse proxy, as was done in
Id6982945509a174b0aaa74ccbdfa45adc5cfbb7a

Depends-On: https://review.openstack.org/619695
Depends-On: https://review.openstack.org/619691
Change-Id: Id02f3dfbe29cf4ddbe2f3a1f366d2a917b3960b7
@cognifloyd
Copy link

Thanks!

openstack-gerrit pushed a commit to openstack/openstack-ansible that referenced this issue Nov 27, 2018
The role ansible-sshd has removed existing tags and replaced them
with equivalents in a different format, e.g. 0.4.5 with v0.4.5, [1].
This is causing a failure when attempting to install the role defined
in this repository.

[1] willshersystems/ansible-sshd#98

Change-Id: Id02f3dfbe29cf4ddbe2f3a1f366d2a917b3960b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants