Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible breaks part of functionality on 9.2.x, if it is not license manager. #821

Open
yaroslav-nakonechnikov opened this issue Apr 19, 2024 · 9 comments
Assignees
Labels

Comments

@yaroslav-nakonechnikov
Copy link

yaroslav-nakonechnikov commented Apr 19, 2024

https://github.com/splunk/splunk-ansible/blob/9.2.1/roles/splunk_common/tasks/enable_forwarding.yml#L57 this breaks functionality of splunk deployment server.

using defaults.yml file doesn't help.
I suggest remove this block, or add new variable which will help to set it up.

splunk support ticket: https://splunk.my.site.com/customer/s/case/5005a00002xKTVtAAO/docker-splunk-and-deployment-server

@yaroslav-nakonechnikov
Copy link
Author

atm workaround looks like:

- name: fix outputs.conf
  lineinfile:
    path: /opt/splunk/etc/system/local/outputs.conf
    regexp: '^(.*)index =(.*)$'
    line: 'index = True'
    backrefs: yes
  notify:
    - Restart the splunkd service

and setting SPLUNK_ANSIBLE_POST_TASKS = "file:///mnt/path/to/post_tasks.yml"

@jmeixensperger
Copy link
Contributor

Can you elaborate on what functionality is broken? Apologies if it's described in the support ticket--I do not have access to view its details.

All deployment servers that I create on 9.2.1 are able to successfully distribute apps to other instances.

@jmeixensperger jmeixensperger self-assigned this Jun 18, 2024
@yaroslav-nakonechnikov
Copy link
Author

@jmeixensperger https://some_addess/en-US/manager/system/deploymentserver is always empty, for example, with blank screen

@jmeixensperger
Copy link
Contributor

jmeixensperger commented Jun 21, 2024

@yaroslav-nakonechnikov I am unable to reproduce using Splunk 9.2.1 and the latest commits of splunk-ansible. Can you try this out yourself and let me know if you are still seeing the issue?

Here's what I did:

  1. Pull the latest release/develop commit of splunk-ansible in docker-splunk and run: make splunk-redhat-8
  2. Setup a docker-compose.yml using the docker-splunk example here: https://github.com/splunk/docker-splunk/blob/develop/docs/advanced/DEPLOYMENT_SERVER.md#create-standalone-and-deployment-server. Copy the ports section to expose the web port for the deployment server as well.
  3. Run docker-compose with a valid SPLUNK_PASSWORD and set SPLUNK_IMAGE to the new image that was built in step 1.
  4. Wait for the containers to provision. Find the deployment server exposed port and navigate to the url that you shared above.

I also verified that local indexing was indeed disabled through the ansible provisioning. The playbook execution contains:

2024-06-21 10:52:32 TASK [splunk_common : Disable indexing on the current node] ********************
2024-06-21 10:52:32 changed: [localhost]

And the /opt/splunk/etc/system/local/outputs.conf file contains:

[indexAndForward]
index = false

@yaroslav-nakonechnikov
Copy link
Author

and it should be with value true.

@jmeixensperger
Copy link
Contributor

We also patched the 9.2.1 docker-splunk image a couple days ago with the splunk-ansible changes that I mentioned. You can try that out to verify if the blank screen issue is still occurring. Let me know if there are more specific steps required to reproduce this issue beyond the example that I shared above.

@jmeixensperger
Copy link
Contributor

@yaroslav-nakonechnikov can you also clarify what you mean by a "blank screen" in case my understanding is wrong? A screenshot example would also be helpful.

@yaroslav-nakonechnikov
Copy link
Author

@jmeixensperger

image

@yaroslav-nakonechnikov
Copy link
Author

is #855 already released in some container on docker.hub?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants