RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 618633 - new service UI should not allow resource editing
Summary: new service UI should not allow resource editing
Keywords:
Status: CLOSED DUPLICATE of bug 600027
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: luci
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Ryan McCabe
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-27 12:24 UTC by Fabio Massimo Di Nitto
Modified: 2010-07-27 22:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-27 22:52:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabio Massimo Di Nitto 2010-07-27 12:24:33 UTC
testing new the service UI from git:

create something like this (either via UI or manually)

                <resources>
                        <clusterfs device="/dev/vdb2" force_unmount="on" fsid="30538" fstype="gfs2" mountpoint="/mnt" name="gfs2-test"/>
                        <ip address="192.168.3.1" monitor_link="on"/>
                        <ip address="2001:41a8:5::dead/64" monitor_link="on"/>
                        <ip address="192.168.3.2" monitor_link="on"/>
                        <ip address="192.168.3.3" monitor_link="on"/>
                        <ip address="192.168.3.4" monitor_link="on"/>
                        <ip address="192.168.3.5" monitor_link="on"/>
                </resources>
                <service autostart="1" domain="test" exclusive="0" name="sss" recovery="relocate">
                        <ip ref="192.168.3.1">
                                <ip ref="192.168.3.2">
                                        <ip ref="192.168.3.3">
                                                <ip ref="192.168.3.4">
                                                        <ip ref="192.168.3.5">
                                                                <ip ref="2001:41a8:5::dead/64">
                                                                        <clusterfs ref="gfs2-test"/>
                                                                </ip>
                                                        </ip>
                                                </ip>
                                        </ip>
                                </ip>
                        </ip>
                </service>

Display the service in the UI, then go to 192.168.3.5 (for example) and change the IP address to 192.168.3.6, Submit -> KABOOM

12:56:31,070 ERROR [luci.widget_validators.validate_resource] Error validating ip resource
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/luci/widget_validators/validate_resource.py", line 528, in validate_clusvc_form
    newRes = model.getResourceByName(dummy_form['resourcename'])
  File "/usr/lib/python2.6/site-packages/luci/lib/ClusterConf/ModelBuilder.py", line 870, in getResourceByName
    raise KeyError, name
KeyError: '192.168.3.6'

In my opinion the service UI should NOT allow to edit resources.

Comment 1 Ryan McCabe 2010-07-27 22:52:06 UTC

*** This bug has been marked as a duplicate of bug 600027 ***


Note You need to log in before you can comment on or make changes to this bug.