Project

General

Profile

Actions

Bug #25238

closed

rudderc is generating 0 bytes resources when output directory is the same as the input

Added by Nicolas CHARLES 4 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
rudderc
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
I dislike using that feature
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
148
Name check:
To do
Fix check:
Checked
Regression:
No

Description

 ls -alh /home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0/resources/
total 76K
drwxr-xr-x. 1 nicolas nicolas 1,3K 30 juil. 18:03 .
drwxr-xr-x. 1 nicolas nicolas  152 30 juil. 18:03 ..
-rwxr-xr-x. 1 nicolas nicolas  748 30 juil. 18:14 1_8_2_gdm_login_banner_is_configured.sh
-rwxr-xr-x. 1 nicolas nicolas 1,5K 30 juil. 18:14 2_1_1_ensure_unique_timesync_method_is_used.sh
-rwxr-xr-x. 1 nicolas nicolas 1,8K 30 juil. 18:14 3_1_2_wireless_interfaces_are_disabled.sh
-rwxr-xr-x. 1 nicolas nicolas 1,6K 30 juil. 18:14 4_2_3_ssh_pubkeys.sh
-rwxr-xr-x. 1 nicolas nicolas  901 30 juil. 18:14 4_3_6_sudoers_timeout.sh
-rwxr-xr-x. 1 nicolas nicolas  697 30 juil. 18:14 4_4_5_users_with_outdated_hash_algorithm.sh
-rwxr-xr-x. 1 nicolas nicolas  252 30 juil. 18:14 6_2_3_groups_consistency.sh
-rw-r--r--. 1 nicolas nicolas  284 30 juil. 18:14 6_2_5_UIDs_consistency.sh
-rw-r--r--. 1 nicolas nicolas  146 30 juil. 18:14 6_2_6_GIDs_consistency.sh
-rw-r--r--. 1 nicolas nicolas  155 30 juil. 18:14 6_2_7_username_consistency.sh
-rw-r--r--. 1 nicolas nicolas  153 30 juil. 18:14 6_2_8_groupname_consistency.sh
-rwxr-xr-x. 1 nicolas nicolas  638 30 juil. 18:14 6_2_9_path_consistency.sh
-rw-r--r--. 1 nicolas nicolas  947 30 juil. 18:14 cis_ubuntu20_section_1_blacklist.conf.mustache
-rw-r--r--. 1 nicolas nicolas  491 30 juil. 18:14 cis_ubuntu20_section_3_blacklist.conf.mustache
-rwxr-xr-x. 1 nicolas nicolas  156 30 juil. 18:14 is_kernel_module_blacklisted.sh
-rwxr-xr-x. 1 nicolas nicolas  262 30 juil. 18:14 is_kernel_module_disabled.sh
-rw-r--r--. 1 nicolas nicolas   66 30 juil. 18:14 local_login_banner_default_template.mustache
-rw-r--r--. 1 nicolas nicolas   66 30 juil. 18:14 motd_default_template.mustache
-rw-r--r--. 1 nicolas nicolas   66 30 juil. 18:14 remote_login_banner_default_template.mustache
$ ./rudderc --directory "/home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0"  build --store-ids --output "/home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0" 
        Read 202 methods
 WARN Deprecated method 'package_check_installed' (Test if cron is installed): Use [package_present](#_package_present) in audit mode instead.
 WARN Deprecated method 'package_check_installed' (Test if at is installed): Use [package_present](#_package_present) in audit mode instead.
 WARN Unknown variable 'const.s'
 WARN Unknown variable 'const.s'
 WARN Unknown variable 'const.s'
 WARN Unknown variable 'const.s'
       Wrote technique.ids.yml
   Compiling CIS Ubuntu20 Server 1 v1.0 [Linux]
       Wrote /home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0/technique.cf
   Compiling CIS Ubuntu20 Server 1 v1.0 [Windows]
       Wrote /home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0/technique.ps1
  Generating CIS Ubuntu20 Server 1 v1.0 [Metadata]
       Wrote /home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0/metadata.xml
      Copied resources
nicolas@kenitec:~/dev/rudder-plugins-private/cis$ ls -alh /home/nicolas/dev/rudder-plugins-private/cis/build/techniques/systemSettings/misc/cis_ubuntu20_srv_1/1.0/resources/
total 0
drwxr-xr-x. 1 nicolas nicolas 1,3K 30 juil. 18:03 .
drwxr-xr-x. 1 nicolas nicolas  152 30 juil. 18:03 ..
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 1_8_2_gdm_login_banner_is_configured.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 2_1_1_ensure_unique_timesync_method_is_used.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 3_1_2_wireless_interfaces_are_disabled.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 4_2_3_ssh_pubkeys.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 4_3_6_sudoers_timeout.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 4_4_5_users_with_outdated_hash_algorithm.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 6_2_3_groups_consistency.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 6_2_5_UIDs_consistency.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 6_2_6_GIDs_consistency.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 6_2_7_username_consistency.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 6_2_8_groupname_consistency.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 6_2_9_path_consistency.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 cis_ubuntu20_section_1_blacklist.conf.mustache
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 cis_ubuntu20_section_3_blacklist.conf.mustache
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 is_kernel_module_blacklisted.sh
-rwxr-xr-x. 1 nicolas nicolas    0 30 juil. 18:16 is_kernel_module_disabled.sh
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 local_login_banner_default_template.mustache
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 motd_default_template.mustache
-rw-r--r--. 1 nicolas nicolas    0 30 juil. 18:16 remote_login_banner_default_template.mustache

happens with rudder 8.1


Subtasks 1 (0 open1 closed)

Bug #25345: Missing import in ruddercReleasedClark ANDRIANASOLOActions
Actions #1

Updated by Alexis Mousset 4 months ago

  • Category set to rudderc
Actions #2

Updated by Alexis Mousset 4 months ago

  • Target version set to 8.1.6
Actions #3

Updated by Alexis Mousset 4 months ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #4

Updated by Alexis Mousset 4 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder/pull/5794
Actions #5

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 8.1.6 to 8.1.7
Actions #6

Updated by Alexis Mousset 4 months ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by Alexis Mousset 4 months ago

  • Subtask #25345 added
Actions #8

Updated by Alexis Mousset 2 months ago

  • Priority changed from 150 to 148
  • Fix check changed from To do to Checked
Actions #9

Updated by Vincent MEMBRÉ 2 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.1.7 which was released today.

Actions

Also available in: Atom PDF