Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Upgrading mesos 0.27.2 to 1.0.0 with custom work_dir breaks slave startup #85

Open
stevenschlansker opened this issue Jul 28, 2016 · 2 comments

Comments

@stevenschlansker
Copy link

stevenschlansker commented Jul 28, 2016

We have a custom work_dir set via configuration management:

root@mesos-slave2-qa-sf:~# cat /etc/mesos-slave/work_dir
/mnt/mesos-slave

the mesos package includes this file:

root@mesos-slave2-qa-sf:~# dpkg-query -L mesos | grep /etc/mesos-slave
/etc/mesos-slave
/etc/mesos-slave/work_dir

so when you upgrade, it gets a dpkg-dist file from the new package:

root@mesos-slave3-qa-sf:~# puppet agent -t
Notice: /Stage[main]/Otmesos::Mesos_common/Package[mesos]/ensure: ensure changed '0.27.2-2.0.15.ubuntu1404' to '1.0.0-2.0.89.ubuntu1404'
root@mesos-slave3-qa-sf:~# ls /etc/mesos-slave/work_dir*
/etc/mesos-slave/work_dir  /etc/mesos-slave/work_dir.dpkg-dist

which then gets picked up as a flag to the mesos-slave process:

/usr/bin/mesos-init-wrapper slave -> /usr/bin/mesos-slave ...
Failed to load unknown flag 'work_dir.dpkg-dist'
Usage: mesos-slave [options]
...

which totally sucks! Maybe the package shouldn't manage the file this way? Maybe mesos-init-wrapper should ignore .dpkg-* files?

@memelet
Copy link

memelet commented Aug 22, 2016

So this fully breaks upgrading. Any workaround? (Other than for us to delete the file after installing the package that is.)

@stevenschlansker
Copy link
Author

Deleting the file via configuration management was our workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants