Bug #2094

RemoteAccess/HttpdAdmin UI module does not expand httpd-admin configuration

Added by Davide Principi about 8 years ago. Updated almost 8 years ago.

Status:CLOSEDStart date:08/22/2013
Priority:NormalDue date:08/22/2013
Assignee:-% Done:

100%

Category:nethserver-httpd-admin
Target version:v6.4-beta2
Security class: Resolution:
Affected version:v6.4-beta1 NEEDINFO:No

Description

Package version:
nethserver-httpd-admin-1.0.4-1.ns6.noarch

Symptom:
after saving RemoteAccess UI form, changes are not applied to httpd-admin

  # find /etc/e-smith/events/remoteaccess-update/
/etc/e-smith/events/remoteaccess-update/
/etc/e-smith/events/remoteaccess-update/services2adjust
/etc/e-smith/events/remoteaccess-update/services2adjust/httpd-admin
/etc/e-smith/events/remoteaccess-update/services2adjust/sshd
/etc/e-smith/events/remoteaccess-update/S20firewall-adjust
/etc/e-smith/events/remoteaccess-update/templates2expand
/etc/e-smith/events/remoteaccess-update/templates2expand/etc
/etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh
/etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh/sshd_config
Workaround:
  • Expand /etc/httpd/admin-conf/httpd.conf template
  • Reload httpd-admin service

Related issues

Related to NethServer 6 - Bug #2068: Single and double quotes characters escaped CLOSED 08/22/2013 08/22/2013

Associated revisions

Revision 1a0242c0
Added by Davide Principi almost 8 years ago

createlinks: expand admin-conf/httpd.conf template on remoteaccess-update event. Refs #2094

History

#1 Updated by Davide Principi almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time changed from 1.00 to 0.50

#2 Updated by Davide Principi almost 8 years ago

  • Due date set to 08/22/2013
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 08/22/2013
  • % Done changed from 20 to 30

#3 Updated by Davide Principi almost 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

After upgrading to modified version
  • Access RemoteAccess UI module
  • Check that /etc/httpd/admin-conf/httpd.conf is expanded properly when a network is added/removed from the list

#4 Updated by Davide Principi almost 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-httpd-admin-1.0.4-2.0git1a0242c0.ns6.noarch.rpm

Updated by #2068
nethserver-httpd-admin-1.0.4-3.0gitdcfdd676.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti almost 8 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

Before adding a new network:

[root@test ~]# ll /etc/httpd/admin-conf/httpd.conf 
-rw-r--r--. 1 root root 4731 Aug 26 12:24 /etc/httpd/admin-conf/httpd.conf

After:

[root@test ~]# ll /etc/httpd/admin-conf/httpd.conf 
-rw-r--r--. 1 root root 4731 Aug 26 12:24 /etc/httpd/admin-conf/httpd.conf

[root@test ~]# config show httpd-admin
httpd-admin=service
    Runlevels=2,3,4,5
    SSL=enabled
    TCPPort=980
    ValidFrom=10.0.0.0/255.255.255.0
    access=public
    status=enabled

[root@test ~]# grep "10.0.0.0" /etc/httpd/admin-conf/httpd.conf
       Allow from 127.0.0.1 192.168.5.0/255.255.255.0 10.0.0.0/255.255.255.0

After removing the network:

[root@test ~]# ll /etc/httpd/admin-conf/httpd.conf 
-rw-r--r--. 1 root root 4731 Aug 26 12:37 /etc/httpd/admin-conf/httpd.conf

[root@test ~]# ps aux | grep httpd-admin
root      8994  0.1  2.1 171212 10632 ?        Ss   12:24   0:00 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.conf
admin     9412  0.3  1.2 173572  6464 ?        S    12:37   0:00 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.conf

The httpd.conf file is expanded and httpd-admin children are correctly restarted.

Verified with package: nethserver-base-1.4.0-15.0git1287cc29.ns6.noarch

Mariking as VERIFIED.

#7 Updated by Giacomo Sanchietti almost 8 years ago

  • Assignee deleted (Giacomo Sanchietti)

#8 Updated by Davide Principi almost 8 years ago

Packager note:
Blocked by #2103 #2075, ON_QA

#9 Updated by Davide Principi almost 8 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-base-1.4.1-1.ns6.noarch.rpm
nethserver-httpd-admin-1.0.5-1.ns6.noarch.rpm
nethserver-firewall-base-1.0.5-1.ns6.noarch.rpm

Also available in: Atom PDF