Project

General

Profile

Bug #9745

iSCSI configuration not being regenerated

Added by Hans Woithe over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Expected
Assignee:
Josh Paetzel
Category:
OS
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

ctl.conf is not properly being regenerated.
For example, if I start with a clean slate and I create a target and then remove it using the web interface the ctl.conf file will remain the same.
The web interface and REST calls reflect the correct state, but ctld does not because of the stale configuration file.
If I reboot the server or restart the iSCSI service, the configuration file is properly regenerated.

  1. sudo cat /etc/ctl.conf
    portal-group pg1 {
    discovery-filter portal-name
    discovery-auth-group no-authentication
    listen 0.0.0.0:3260
    }

Create a target using the web interface.

  1. sudo cat /etc/ctl.conf
    portal-group pg1 {
    discovery-filter portal-name
    discovery-auth-group no-authentication
    listen 0.0.0.0:3260
    }

auth-group ag4tg_1 {
}

target iqn.2015-01.com.domain.some:xxx {
alias xxx
auth-group no-authentication
portal-group pg1
}

Remove the target using the web interface.

  1. sudo cat /etc/ctl.conf
    portal-group pg1 {
    discovery-filter portal-name
    discovery-auth-group no-authentication
    listen 0.0.0.0:3260
    }

auth-group ag4tg_1 {
}

target iqn.2015-01.com.domain.some:xxx {
alias xxx
auth-group no-authentication
portal-group pg1
}

If I create a target, an extent, and an association, and then delete the target, the association and target are removed from the web interface, as they should.
The extent remains in the web interface, as it should.
However, the target remains in the ctl.conf file.
The association/lun has been removed from the target but not the target itself.
Restarting the iSCSI service correctly regenerates the configuration file.
This causes my iSCSI clients to see old targets that no longer exist when performing target discovery.

Associated revisions

Revision 7699d6e2 (diff)
Added by Josh Paetzel over 5 years ago

Reload ctl when deleting a target. This fixes a bug where the GUI will show a target has been deleted but CTL thinks it's still there until you reboot or do something else that causes the ctl config file to be regenerated and ctl to be reloaded. Ticket: #9745 Merge-FN93: yes Merge-TN93: yes

Revision 19b348b8 (diff)
Added by Josh Paetzel over 5 years ago

Reload ctl when deleting a target. This fixes a bug where the GUI will show a target has been deleted but CTL thinks it's still there until you reboot or do something else that causes the ctl config file to be regenerated and ctl to be reloaded. Ticket: #9745 Merge-FN93: yes Merge-TN93: yes (cherry picked from commit 7699d6e2969eeb40243ea5e68c76cbaba1cf7856)

Revision f0346c55 (diff)
Added by Josh Paetzel over 5 years ago

Reload ctl when deleting a target. This fixes a bug where the GUI will show a target has been deleted but CTL thinks it's still there until you reboot or do something else that causes the ctl config file to be regenerated and ctl to be reloaded. Ticket: #9745 Merge-FN93: yes Merge-TN93: yes (cherry picked from commit 7699d6e2969eeb40243ea5e68c76cbaba1cf7856)

History

#1 Updated by Josh Paetzel over 5 years ago

  • Status changed from Unscreened to Screened
  • Assignee changed from Alexander Motin to Josh Paetzel
  • Target version set to Unspecified

#2 Updated by Josh Paetzel over 5 years ago

  • Status changed from Screened to Investigation

I can repro this: deleting a target does not regenerate ctl.conf or reload ctl. Not immediately apparent why either.

#3 Updated by Josh Paetzel over 5 years ago

  • Status changed from Investigation to Ready For Release
  • ChangeLog Entry updated (diff)

#4 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF