Git Product home page Git Product logo

Comments (17)

jlmitch5 avatar jlmitch5 commented on May 18, 2024 2

Thanks for filing this issue!

I'm in the middle of investigating this and haven't completely figured it out, but I believe enabling the save button should be a simple fix (we're referencing a javascript value to disable the button, that seems to be undefined).

The issue is present downstream (i.e.: Tower), so I'll be fixing it there and it should be picked up when we merge that code back into AWX.

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024 2

Thanks for the update and I'll be looking forward for the fix.

from awx.

aoyawale avatar aoyawale commented on May 18, 2024 1

only saves if you choose another option from the drop down then it will ask "save changes?" besides that I get it greyed out also.

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

In the awx/sso/backends.py there are checks for those features to be enabled.
if not feature_enabled('ldap'):

In tower, you need a license to active those features. I didn't think that'd be needed for AWX?

from awx.

cchurch avatar cchurch commented on May 18, 2024

The StubLicense should enable those authentication types. Check to see whether you can save those settings via the API (e.g. /api/v2/settings/radius/).

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

Yes looks good via the API.

image

Also, when on the LDAP page, if I fill out the form, and then hit cancel you get the modal popup to confirm discarding the settings. The "Save Changes" button is enabled and green. If I hit "Save Changes" there, it works and settings are saved.

I am having issues with LDAP, most likey the LDAP settings, but where is the LDAP debug/logging now? Is it in the same spot as Tower?

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

I am seeing this error in the Dev console when I go to the LDAP settings page.

image

from awx.

fortinj66 avatar fortinj66 commented on May 18, 2024

A slightly different but related issue...

If you try to edit a setting (in my case in LDAP) the save button does not get enabled (as expected with the current bug...) However, if you try the workarounds such as hitting cancel or going to a different option you are not prompted with a discard or save changes popup as you are during initial configuration. At this point it seems impossible to update a configuration

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

I've just experienced that same thing. My initial config saved (with the 'work around'), however my LDAP isn't working so I wanted to make changes. I don't get any modal's now or anyway to save it just like you saw.

from awx.

fortinj66 avatar fortinj66 commented on May 18, 2024

Here is an error I am seeing in the logs... Not sure if its related:

2017/09/12 18:20:47 [warn] 30#0: *22 upstream server temporarily disabled while connecting to upstream, client: 10.128.2.1, server: _, request: "GET /api/v2/config/ HTTP/1.1", upstream: "uwsgi://[::1]:8050", host: "awx-web-svc-awx.services.os.xxx.xxx", referrer: "https://awx-web-svc-awx.services.os.xxx.xxx/"
--
  | Traceback (most recent call last):
  | File "/usr/bin/ansible", line 43, in <module>
  | import ansible.constants as C
  | File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 202, in <module>
  | DEFAULT_LOCAL_TMP         = get_config(p, DEFAULTS, 'local_tmp',        'ANSIBLE_LOCAL_TEMP',      '~/.ansible/tmp', value_type='tmppath')
  | File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 109, in get_config
  | makedirs_safe(value, 0o700)
  | File "/usr/lib/python2.7/site-packages/ansible/utils/path.py", line 71, in makedirs_safe
  | raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
  | ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: '/.ansible'

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

Were those logs in the awx_web container? What path?

from awx.

fortinj66 avatar fortinj66 commented on May 18, 2024

Yes, this was from awx_web... Here is an entire log segment

2017/09/12 18:38:27 [warn] 30#0: *56 upstream server temporarily disabled while connecting to upstream, client: 10.128.2.1, server: _, request: "GET /api/v2/config/ HTTP/1.1", upstream: "uwsgi://[::1]:8050", host: "awx-web-svc-awx.services.os.xxx.xxx", referrer: "https://awx-web-svc-awx.services.os.xxx.xxx/"
--
  | Traceback (most recent call last):
  | File "/usr/bin/ansible", line 43, in <module>
  | import ansible.constants as C
  | File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 202, in <module>
  | DEFAULT_LOCAL_TMP         = get_config(p, DEFAULTS, 'local_tmp',        'ANSIBLE_LOCAL_TEMP',      '~/.ansible/tmp', value_type='tmppath')
  | File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 109, in get_config
  | makedirs_safe(value, 0o700)
  | File "/usr/lib/python2.7/site-packages/ansible/utils/path.py", line 71, in makedirs_safe
  | raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
  | ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: '/.ansible'


from awx.

jlmitch5 avatar jlmitch5 commented on May 18, 2024

@hiddenicon and just a heads up, if this is blocking you, you can most likely get around the disabled button issue by opening up the chrome debugger (just right click and "inspect the element" on the greyed-out save button...make sure you have dev tools enabled).

Then you can delete this disabled key and it should turn green (and be clickable):

screen shot 2017-09-12 at 5 57 08 pm

from awx.

hiddenicon avatar hiddenicon commented on May 18, 2024

yes that workaround works editing it in the DOM. I was able to save changes as well. Now if I can get LDAP working. Do you know where LDAP logs to now? Different than Tower I assume. Sorry for being off-topic.

from awx.

fortinj66 avatar fortinj66 commented on May 18, 2024

from awx.

fortinj66 avatar fortinj66 commented on May 18, 2024

@jlmitch5 Any idea when this fix will be available?

Thanks!
--John

UPDATE: This save button seems to be fixed in the latest code. I rebuilt tower and the save button seems to work as the settings are saved and retrievable.

However, I'm not certain that the changes are applied. As a test I created a new organization and a new team in LDAP and changed the LDAP config to show this. The changes save but the new organization and team do not appear in either the team or organization tabs...

UPDATE 2: I guess I didn't wait long enough. Both organization and team appeared after several minutes... This issues seems to be fixed.

from awx.

matburt avatar matburt commented on May 18, 2024

Excellent, closing.

from awx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.