Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-19 Thread Vivek Goyal
On Tue, Apr 19, 2016 at 10:32:20AM +0300, Marius Vollmer wrote: [..] > > So If I create a partition say /dev/sdb1 and create "mkfs.xfs /dev/sdb1" > > and later remove partition /dev/sdb1 (which will leave xfs signature > > somewhere around 2048 sector by default) and then pass disk /dev/sdb > > to

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-19 Thread Marius Vollmer
Vivek Goyal writes: > Ok, I am playing with it more and trying to understand it better. I wrote a test case for this: https://github.com/mvollmer/docker-storage-setup/blob/664a1fbf4f9683778081f9827737e84af7a8bc8f/tests/002-no-pvcreate-prompts-for-stale-fs-signatures > So If I create a partitio

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-18 Thread Vivek Goyal
On Mon, Apr 18, 2016 at 12:02:49PM +0300, Marius Vollmer wrote: > Vivek Goyal writes: > > > On Fri, Apr 15, 2016 at 02:46:24PM +0300, Marius Vollmer wrote: > > > >> Sorry, I was talking about d-s-s. Do you think it is a bug in d-s-s > >> that pvcreate might prompt during its run and make it fail

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-18 Thread Marius Vollmer
Vivek Goyal writes: > On Fri, Apr 15, 2016 at 02:46:24PM +0300, Marius Vollmer wrote: > >> Sorry, I was talking about d-s-s. Do you think it is a bug in d-s-s >> that pvcreate might prompt during its run and make it fail in a >> non-interactive use? > > No it is not a bug. If user provided a dis

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-15 Thread Vivek Goyal
On Fri, Apr 15, 2016 at 02:46:24PM +0300, Marius Vollmer wrote: > Vivek Goyal writes: > > > On Thu, Apr 14, 2016 at 10:45:03AM +0300, Marius Vollmer wrote: > >> > >> In your opinion, is it a bug or a feature that pvcreate might prompt > >> like this? > > > > I think this is default behavior of pv

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-15 Thread Marius Vollmer
Vivek Goyal writes: > On Thu, Apr 14, 2016 at 10:45:03AM +0300, Marius Vollmer wrote: > > If you think this is important to add, open a PR and add an option say > FORCE_WIPE_DISKS=false Will do, thanks! > dss is more of a service. So tyring to use it as command line with > various options might

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-15 Thread Marius Vollmer
Vivek Goyal writes: > On Thu, Apr 14, 2016 at 10:45:03AM +0300, Marius Vollmer wrote: >> >> In your opinion, is it a bug or a feature that pvcreate might prompt >> like this? > > I think this is default behavior of pvcreate. By default it will not > create lvm signature on disk if it finds other

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-14 Thread Vivek Goyal
On Thu, Apr 14, 2016 at 10:45:03AM +0300, Marius Vollmer wrote: > Vivek Goyal writes: > > > On Wed, Apr 13, 2016 at 10:36:40AM +0300, Marius Vollmer wrote: > > > >> [..] So any user-prompting from docker-storage-setup is a bug? I get > >> a prompt from pvcreate sometimes, for example when the ra

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-14 Thread Marius Vollmer
Vivek Goyal writes: > On Wed, Apr 13, 2016 at 10:36:40AM +0300, Marius Vollmer wrote: > >> [..] So any user-prompting from docker-storage-setup is a bug? I get >> a prompt from pvcreate sometimes, for example when the random data on >> the new partition has a filesystem signature at the beginnin

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Vivek Goyal
On Wed, Apr 13, 2016 at 10:36:40AM +0300, Marius Vollmer wrote: > Vivek Goyal writes: > > > On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: > > > >> - Docker-storage-setup needs to run non-interactively, but I think it > >> can't do that right now, and asks confirmation for vari

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Marius Vollmer
Daniel J Walsh writes: > On 04/13/2016 08:46 AM, Marius Vollmer wrote: > >> I start to think we need to make a UI for "atomic" rather than for >> docker-storage-setup... >> >> What do you think of "atomic add-storage /dev/sda" as an API to >> docker-storage-setup? > > Marius, I am thinking that t

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Jeremy Eder
On Wed, Apr 13, 2016 at 9:06 AM, Daniel J Walsh wrote: > COW on loopback device, how do I fix? > Want to try out Overlayfs How? > ​ ​ ​Yes! These !​ ​

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Daniel J Walsh
On 04/13/2016 08:46 AM, Marius Vollmer wrote: Daniel J Walsh writes: Well one case you can do right now is `atomic images --prune`, [...] I start to think we need to make a UI for "atomic" rather than for docker-storage-setup... What do you think of "atomic add-storage /dev/sda" as an API

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Marius Vollmer
Daniel J Walsh writes: > Well one case you can do right now is `atomic images --prune`, [...] I start to think we need to make a UI for "atomic" rather than for docker-storage-setup... What do you think of "atomic add-storage /dev/sda" as an API to docker-storage-setup?

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Daniel J Walsh
On 04/13/2016 03:40 AM, Marius Vollmer wrote: Daniel J Walsh writes: Eventually adding a feature to do an `atomic migrate` to move from back end to another would be nice With docker-1.10 you can do an atomic migrate export Change the back end atomic migrate import And switch from loopba

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Elvir Kuric
On 04/13/2016 10:56 AM, Marius Vollmer wrote: Elvir Kuric writes: I had same dilemma in past when I wanted to make d-s-s to wipe out all on device specified in DEVS section in /etc/sysconfig/docker-storage, however I think option to stop d-s-s if it detects fs signature is security warning for

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Marius Vollmer
Elvir Kuric writes: > I had same dilemma in past when I wanted to make d-s-s to wipe out all > on device specified in DEVS section in /etc/sysconfig/docker-storage, > however I think option to stop d-s-s if it detects fs signature is > security warning for case when someone by mistake specify wro

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Elvir Kuric
On 04/13/2016 09:36 AM, Marius Vollmer wrote: Vivek Goyal writes: On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: - Docker-storage-setup needs to run non-interactively, but I think it can't do that right now, and asks confirmation for various things. It already runs non-i

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Marius Vollmer
Daniel J Walsh writes: > Eventually adding a feature to do an `atomic migrate` to move from > back end to another would be nice > > With docker-1.10 you can do an > > atomic migrate export > > Change the back end > > atomic migrate import > > And switch from loopback devices to devmapper on physi

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-13 Thread Marius Vollmer
Vivek Goyal writes: > On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: > >> - Docker-storage-setup needs to run non-interactively, but I think it >> can't do that right now, and asks confirmation for various things. > > It already runs non-interactively. It is a service which run

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Daniel J Walsh
On 04/12/2016 04:09 PM, Vivek Goyal wrote: On Tue, Apr 12, 2016 at 04:06:45PM -0400, Daniel J Walsh wrote: On 04/12/2016 03:50 PM, Vivek Goyal wrote: On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: Hi, I am working on this: https://github.com/cockpit-project/cockpit/w

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Vivek Goyal
On Tue, Apr 12, 2016 at 04:06:45PM -0400, Daniel J Walsh wrote: > > > On 04/12/2016 03:50 PM, Vivek Goyal wrote: > >On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: > >>Hi, > >> > >>I am working on this: > >> > >> https://github.com/cockpit-project/cockpit/wiki/Atomic:-Docker-S

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Daniel J Walsh
On 04/12/2016 03:50 PM, Vivek Goyal wrote: On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: Hi, I am working on this: https://github.com/cockpit-project/cockpit/wiki/Atomic:-Docker-Storage which is basically a UI inside Cockpit for docker-storage-setup. I am not super f

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Vivek Goyal
On Tue, Apr 12, 2016 at 03:09:08PM +0300, Marius Vollmer wrote: > Hi, > > I am working on this: > > https://github.com/cockpit-project/cockpit/wiki/Atomic:-Docker-Storage > > which is basically a UI inside Cockpit for docker-storage-setup. > > I am not super far along, but I am getting to t

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Jeremy Eder
On Tue, Apr 12, 2016 at 10:26 AM, Marius Vollmer wrote: > Elvir Kuric writes: > > > On 04/12/2016 02:28 PM, Jeremy Eder wrote: > > > > I think --force-wipe and --init-storage ... or any destructive operation > > on disks was not good option in past ( due by mistake selecting in > > /etc/sysconfi

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Marius Vollmer
Jeremy Eder writes: > Perhaps there are some other options to that should be exposed to the > UI? Of course, the job is never done. :-)

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Marius Vollmer
Elvir Kuric writes: > On 04/12/2016 02:28 PM, Jeremy Eder wrote: > > I think --force-wipe and --init-storage ... or any destructive operation > on disks was not good option in past ( due by mistake selecting in > /etc/sysconfing/docker-storage wrong device ) .. not sure something > changed in me

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Elvir Kuric
On 04/12/2016 02:28 PM, Jeremy Eder wrote: ​ Adding Vivek, not sure he's on this list.​ docker-storage-setup includes an example conf file: /usr/lib/docker-storage-setup/docker-storage-setup Perhaps there are some other options to that should be exposed to the UI? If it's helpful, here is an a

Re: [atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Jeremy Eder
​Adding Vivek, not sure he's on this list.​ docker-storage-setup includes an example conf file: /usr/lib/docker-storage-setup/docker-storage-setup Perhaps there are some other options to that should be exposed to the UI? If it's helpful, here is an ansible I use to reprovision docker storage for

[atomic-devel] Running docker-storage-setup from a UI

2016-04-12 Thread Marius Vollmer
Hi, I am working on this: https://github.com/cockpit-project/cockpit/wiki/Atomic:-Docker-Storage which is basically a UI inside Cockpit for docker-storage-setup. I am not super far along, but I am getting to the point where the UI will need to actually run docker-storage-setup. - My basic