Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upManage `sources.list` and make bootstrap script purge lists before updating #417
Comments
|
I did some searching and this appears to be a problem with EC2's apt mirroring. In the interest of being more reproducible, here is what I think is a better solution:
|
|
Sounds good to me. This would be an appropriate first bug for someone with intermediate Ubuntu familiarity :) |
|
I would like give this a go. Where should i start with this? |
|
@choudhary001 Great, it's yours :) Are you familiar with |
|
@aneeshusa I am familiar with /etc/apt/sources.list file. I looked into 'https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html' as well. But I didn't understand the locking down contents of the sources.list file, using official Ubuntu mirrors instead of EC2 mirrors part. Could explain it a bit more? |
|
@choudhary001 Salt, among other things, is a configuration management tool. The This will entail checking in a good copy of |
|
@choudhary001 Are you still working on this? |
|
@jdm Yes |
|
@choudhary001 Are you stuck on anything? Can we hear what is going on right now? |
|
@KiChjang I made the changes suggested by @aneeshusa as follow: --- a/ubuntu/init.sls
After this I created vm images again but I don't see the source.list file being picked from repository. I was looking for was to test this. Basically stuck on how to verify this works. Any pointers will help. Sorry that it got delayed this much. |
|
@choudhary001, it will be easier for me to help if you open a WIP PR with what you have so far. It's hard to tell but there may be a path issue or something else. One way to test this is manual verification inside a Vagrant VM, and another would be adding a test that makes sure that the deployed |
|
Hi @aneeshusa , |
|
@aneeshusa
I think no. 1 is done. Do I need to do anything for no. 2 and no. 3 here? |
|
@aneeshusa Could you answer the questions in the previous comment? |
|
#520 takes care of the first item (although it currently fails on Travis and I'm not sure why). The second item needs the wiki to be updated after the PR lands, and the third item will be manually done as part of deploy; you don't need to do anything for those. If you can get the PR tests working on Travis, then we'll handle everything else. |
|
If there is still work to be done on this and someone is willing to mentor me along the way I would love to work on it. |
|
@aneeshusa @jdm Hi, I have submitted a patch to fix issues due to #582 in my on-going pull request - #520. |
|
@jdm @aneeshusa did you get a chance look into new changes in #582 |
|
Do you mean #520? |
|
Yes, I meant #520. Sorry for the link mess up. |
Manage `sources.list` and make bootstrap script purge lists before updating @aneeshusa Hi, As discussed I have created this pull request. Let know me what you think could be the issue. > > One way to test this is manual verification inside a Vagrant VM, > > I tried this as well after rebuilding the VMs, I checked in servo-master1 vm but could find the XXX string in the vm's sources.list file. Perhaps I am missing to modify some other config files. Fixes #417. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/520) <!-- Reviewable:end -->
Ran into
SystemError: E:Unable to parse package file /var/lib/apt/lists/us-west-2.ec2.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_i18n_Translation-en (1), E:The package lists or status file could not be parsed or opened.again today. We've been running into similar apt issues every week or two on the linux slaves.@aneeshusa, @larsbergstrom, what are your thoughts on adding a salt state to
rm -r /var/lib/apt/lists/; sudo apt-get updatebefore applying other states on the Linux hosts, to circumvent future instances of this issue?