[Bug 265248] bectl warns twice when the user tries once to create an existing environment (boot environment name already taken)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Jul 2022 07:09:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265248

            Bug ID: 265248
           Summary: bectl warns twice when the user tries once to create
                    an existing environment (boot environment name already
                    taken)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: grahamperrin@gmail.com

Nit: 

root@mowa219-gjp4-8570p-freebsd:~ # bectl list -c creation
BE                        Active Mountpoint Space Created
n250511-5f73b3338ee-d     -      -          64.6G 2021-11-13 15:43
n253776-d5ad1713cc3-b     -      -          9.43G 2022-03-18 09:31
n254693-d7696096209-f     -      -          4.60G 2022-04-27 17:41
n255078-e140d551b78-h     -      -          88.4G 2022-05-11 21:18
n255588-01235012e5b-d     -      -          2.61G 2022-05-15 00:29
n255588-01235012e5b-b-c1d -      -          14.0G 2022-05-23 18:11
n255769-f16e38162c7-k     -      -          6.48G 2022-06-14 20:36
n256147-1c665e95d44-d     -      -          6.35G 2022-06-25 08:08
n256363-9c42645a1e4-d     -      -          1.55G 2022-07-05 19:40
n256570-5c19fabbe34-a     -      -          215M  2022-07-06 05:24
n256570-5c19fabbe34-b     -      -          277M  2022-07-11 17:18
n256570-5c19fabbe34-c     NR     /          61.3G 2022-07-13 10:53
root@mowa219-gjp4-8570p-freebsd:~ # bectl destroy n256570-5c19fabbe34-a
root@mowa219-gjp4-8570p-freebsd:~ # bectl create n256570-5c19fabbe34-c
boot environment name already taken
boot environment name already taken
Failed to create bootenv n256570-5c19fabbe34-c
root@mowa219-gjp4-8570p-freebsd:~ # bectl create n256570-5c19fabbe34-d
root@mowa219-gjp4-8570p-freebsd:~ # bectl mount n256570-5c19fabbe34-d /tmp/up
Successfully mounted n256570-5c19fabbe34-d at /tmp/up
root@mowa219-gjp4-8570p-freebsd:~ # pkg -r /tmp/up upgrade --quiet --yes
…
root@mowa219-gjp4-8570p-freebsd:~ # bectl umount n256570-5c19fabbe34-d 
root@mowa219-gjp4-8570p-freebsd:~ # bectl activate n256570-5c19fabbe34-d
Successfully activated boot environment n256570-5c19fabbe34-d
root@mowa219-gjp4-8570p-freebsd:~ # exit
logout
% date ; uname -a
Sat 16 Jul 2022 08:04:39 BST
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #15
main-n256570-5c19fabbe34-dirty: Wed Jul  6 04:50:03 BST 2022    
root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
amd64
% exit

-- 
You are receiving this mail because:
You are the assignee for the bug.