On Wed, Nov 22, 2017 at 12:00 PM, Charles Moulliard <[email protected]> wrote:
> I can't delete it using minishift 1.8 > > minishift profile delete --profile istio-demo > You must provide the profile name. > You have to use *minishift profile delete istio-demo*, no need to use *--profile* flag here. > > minishift profile list > - istio-demo Does Not Exist (Active) > - minishift Stopped > - profile-demo Stopped > > ll ~/.minishift/profiles > total 0 > drwxr-xr-x 12 dabou staff 408B Nov 21 20:21 istio-demo > drwxr-xr-x 12 dabou staff 408B Nov 21 08:31 profile-demo > > On Wed, Nov 22, 2017 at 6:11 AM, Praveen Kumar < > [email protected]> wrote: > >> >> >> On Wed, Nov 22, 2017 at 1:52 AM, Charles Moulliard <[email protected]> >> wrote: >> >>> Hi, >>> >>> When Ansible runs these minishift instructions, then the vm is well >>> deleted but not the content of the profile. Is it a mistake ? >>> >> >> No, this is expected. To delete the profile folder you need to use >> *minishift profile delete <profile_name>*, this will delete the VM and also >> remove profile content. If you run this with default profile (minishift) >> then this command will throw an error because *minishift profile delete* >> not capable to remove default profile. >> >> >>> >>> - name: Shutdown minishift >>> command: minishift stop --profile {{ profile.name }} >>> when: '"Running" in ps_state.stdout' >>> ignore_errors: yes >>> >>> TASK [Shutdown minishift] ****************************** >>> ************************************************************ >>> ************************************************************ >>> ************** >>> changed: [localhost] => {"changed": true, "cmd": ["minishift", "stop", >>> "--profile", "istio-demo"], "delta": "0:00:08.181745", "end": "2017-11-21 >>> 20:41:44.287993", "failed": false, "rc": 0, "start": "2017-11-21 >>> 20:41:36.106248", "stderr": "", "stderr_lines": [], "stdout": "Stopping >>> local OpenShift cluster...\nCluster stopped.", "stdout_lines": ["Stopping >>> local OpenShift cluster...", "Cluster stopped."]} >>> >>> - name: Deleting minishift >>> shell: MINISHIFT_HOME={{ ansible_env.HOME }}/.minishift minishift >>> delete --profile {{ profile.name }} --force >>> >>> TASK [Deleting minishift] ****************************** >>> ************************************************************ >>> ************************************************************ >>> ************** >>> changed: [localhost] => {"changed": true, "cmd": >>> "MINISHIFT_HOME=/Users/dabou/.minishift minishift delete --profile >>> istio-demo --force", "delta": "0:00:00.082587", "end": "2017-11-21 >>> 20:41:44.802092", "failed": false, "rc": 0, "start": "2017-11-21 >>> 20:41:44.719505", "stderr": "", "stderr_lines": [], "stdout": "Deleting the >>> Minishift VM...\nMinishift VM deleted.", "stdout_lines": ["Deleting the >>> Minishift VM...", "Minishift VM deleted."]} >>> >>> But >>> >>> ll ~/.minishift/profiles/istio-demo >>> total 24 >>> drwxr-xr-x 6 dabou staff 204B Nov 21 20:19 addons >>> -rw-r--r-- 1 dabou staff 1.0K Nov 21 20:33 ca.pem >>> drwxr-xr-x 5 dabou staff 170B Nov 21 20:19 cache >>> -rw-r--r-- 1 dabou staff 1.0K Nov 21 20:33 cert.pem >>> drwxr-xr-x 6 dabou staff 204B Nov 21 20:20 certs >>> drwxr-xr-x 4 dabou staff 136B Nov 21 20:27 config >>> -rw------- 1 dabou staff 1.6K Nov 21 20:33 key.pem >>> drwxr-xr-x 4 dabou staff 136B Nov 21 20:36 logs >>> drwxr-xr-x 6 dabou staff 204B Nov 21 20:43 machines >>> drwxr-xr-x 2 dabou staff 68B Nov 21 20:19 tmp >>> >>> Regards, >>> >>> CHARLES MOULLIARD >>> >>> SOFTWARE ENGINEER MANAGER SPRING(BOOT) >>> >>> Red Hat <https://www.redhat.com/> >>> >>> [email protected] M: +32-473-604014 >>> <https://red.ht/sig> >>> @cmoulliard <https://twitter.com/cmoulliard> >>> >>> _______________________________________________ >>> Container-tools mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/container-tools >>> >>> >> >> >> -- >> Praveen Kumar >> http://fedoraproject.org/wiki/User:Kumarpraveen >> http://fedoraproject.org/ >> http://kumar-pravin.blogspot.com >> >> > > -- Praveen Kumar http://fedoraproject.org/wiki/User:Kumarpraveen http://fedoraproject.org/ http://kumar-pravin.blogspot.com
_______________________________________________ Container-tools mailing list [email protected] https://www.redhat.com/mailman/listinfo/container-tools
