unable to create a jail that has partly the name of another

Description

I hope i put this in the correct category as there is no "Jails" category.

After the upgrade to Truenas Core i wanted to upgrade some of my iocage jails from 11.2 to 12.2.
For compatibility check i wanted to create a jail separate from production and test functionality.
i selected a name that was a few characters shorter than my production jail.
This gave me an error stating the jail already exists which is not true.

I replicated as follows:

  • create a jail called abcdefg. this works fine.

  • create a jail called abcd. this gives me an error stating the jail already exists.

I'm running the latest Truenas Core 12.0-RELEASE
i upgraded by exporting my config (11.x latest) , a fresh re-install and restore config.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
January 7, 2021 at 1:55 PM

Bug Clerk 
December 14, 2020 at 4:44 PM

Waqar 
December 11, 2020 at 1:22 PM

deleting wrong jail is indeed very bad but it has already been fixed in https://github.com/freenas/iocage/pull/336/files. The jail creation issue is middleware specific and creating jail with iocage cli will work, we will have that fixed as well, thank you for letting us know.

Micha 
December 9, 2020 at 1:15 PM

Hi Edwin,

Yes it's obvious this is a big problem. When i found out about the creation bug i immediately installed a test environment.

On production i was already building a new website on a jail with a very similar name as the current one and i am sure i will lose both trying to phase out the old one.

The iocage GUI should not be used until this is fixed. CLI works fine though.

 

 

 

Edwin Klein Mentink 
December 9, 2020 at 12:42 PM

i retested with latest nightly build. And i can not reproduce the item. Is it already fixed?

Failing to create a new jail is a minor issue, but deleting wrongly jails is really bad. I am not sure William read the last entry. It states that a delete will remove the wrong jail.
But the ticket is now bumped to 12.0-U2.

Deleting the wrong stuff is never acceptable in my opinion, and can give the product a bad name.
I think this really should be a blocker for U1 release!

Complete

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

More fields

Katalon Platform

Created December 4, 2020 at 1:38 PM
Updated July 1, 2022 at 3:30 PM
Resolved December 15, 2020 at 4:51 PM