rock icon indicating copy to clipboard operation
rock copied to clipboard

Rock Deploy created extra Stenographer Dirs

Open spartan782 opened this issue 7 years ago • 1 comments

After deploying RockNSM ansible creates directories for Stenographers Packets and Index for each interface it found. These are created one level to high which gets confusing after stenographer starts because it will create the correct dirs.

The path they are created is /data/stenographer/<interface name>/index
/data/stenographer/<interface name>/packets

the correct path should actually be /data/stenographer/<interface name>/thread0/index /data/stenographer/<interface name>/thread/packets

spartan782 avatar Oct 01 '18 14:10 spartan782

Here is the relevant task:

- name: Create stenographer directories
  file:
    path: "{{ stenographer_data_dir }}/{{ item[0] }}/{{ item[1] }}"
    mode: 0755
    owner: "{{ stenographer_user }}"
    group: "{{ stenographer_group }}"
    state: directory
  with_nested:
    - "{{ stenographer_monitor_interfaces }}"
    - [ 'index', 'packets' ]

bndabbs avatar Jan 30 '19 14:01 bndabbs