-
Notifications
You must be signed in to change notification settings - Fork 228
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
Cannot install dsc22 on Ubuntu 16.04 due to missing python-support package #333
Comments
Workaround is to manually install the package and ignoring the missing dependency:
But it causes problems if you try to install anything afterwards |
same issue here, quite annoying. |
Are there specific suggestions as to what should be changed in this cookbook to avoid this? |
@michaelklishin it appears Ubuntu 16.04 dropped python-support package from its repositories, but dsc22 is still requiring it. The dsc22 package needs to change to an or statement for required dependencies For this cookbook to support Ubuntu 16.04 and use the current dsc22 version it could always download the deb package and install it before trying dsc22. You would just need a stable location of the package download or a configurable one. Something like this should work: recipes/datastax.rb
remote_file 'python-support' do
path "#{Chef::Config['file_cache_path']}/python-support_1.0.15_all.deb"
source 'http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb'
action :nothing
end
dpkg_package 'python-support' do
source "#{Chef::Config['file_cache_path']}/python-support_1.0.15_all.deb"
notifies :create, 'remote_file[python-support]', :before
not_if { node['platform_version'].to_f < 16.04 }
end Shall I submit a PR with the above code? Including Ubuntu 16.04 as a platform in the kitchen file... |
Interestingly, the cassandra packages dropped the requirement for python-support after 2.2.5:
but the dsc packages continue to require them:
You might be able to get around this problem by going straight to the cassandra package and not installing dsc at all. |
I was able to work around this problem using these attribute changes:
This should work for these version ranges: |
@sethrosenblum is this something that must be document or should we change attribute defaults? |
Seeing as datastax is no longer supporting or updating the dsc packages, it might be time to rethink this whole section: https://github.com/michaelklishin/cassandra-chef-cookbook/blob/master/recipes/datastax.rb#L76-L109 That way we could discard the idea of installing the dscXX packages, and instead install just the cassandra packages, possibly from the apache repo itself, which is being kept up to date: http://dl.bintray.com/apache/cassandra/ All of that sounds like a big overhaul and potentially a breaking change. |
@sethrosenblum I'm fine documenting your findings, shipping what we have in master as a We also have Chef 13 work planned which will likely be breaking but oh well, most long lived projects support at least two release branches/series and maybe it's time for this cookbook to do just that. So going to 6.x fairly quickly is OK. |
@sethrosenblum I'm open to any PRs you may have in mind around this area. |
Sure, I'll be getting back to this over the next few weeks. |
Attempting to run the default cookbook on Ubuntu 16.04:
The text was updated successfully, but these errors were encountered: