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

Upgrade CI test instance specs #3598

Merged
merged 15 commits into from
Jun 3, 2024
Merged

Upgrade CI test instance specs #3598

merged 15 commits into from
Jun 3, 2024

Conversation

jdalrymple
Copy link
Owner

Increase boot drive size and increase instance ram resources

@jdalrymple jdalrymple added the type:testing Changes affect test code label May 29, 2024
@jdalrymple
Copy link
Owner Author

Here is the error log:

2024-05-29T01:47:10+00:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.7, acme@4.1.6, crond@0.1.0]
Synchronizing cookbooks:
  - gitlab (0.0.1)
  - package (0.1.0)
  - logrotate (0.1.0)
  - postgresql (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - redis (0.1.0)
  - praefect (0.1.0)
  - gitaly (0.1.0)
  - monitoring (0.1.0)
  - gitlab-kas (0.1.0)
  - consul (0.1.0)
  - gitlab-pages (0.1.0)
  - crond (0.1.0)
  - runit (5.1.7)
  - letsencrypt (0.1.0)
  - nginx (0.1.0)
  - acme (4.1.6)
Installing cookbook gem dependencies:
Compiling cookbooks...
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/selinux_distro_helper.rb:2: warning: already initialized constant SELinuxDistroHelper::REDHAT_RELEASE_FILE
/opt/gitlab/embedded/cookbooks/package/libraries/helpers/selinux_distro_helper.rb:2: warning: previous definition of REDHAT_RELEASE_FILE was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/selinux_distro_helper.rb:3: warning: already initialized constant SELinuxDistroHelper::OS_RELEASE_FILE
/opt/gitlab/embedded/cookbooks/package/libraries/helpers/selinux_distro_helper.rb:3: warning: previous definition of OS_RELEASE_FILE was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/secrets_helper.rb:4: warning: already initialized constant SecretsHelper::SECRETS_FILE
/opt/gitlab/embedded/cookbooks/package/libraries/helpers/secrets_helper.rb:4: warning: previous definition of SECRETS_FILE was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/secrets_helper.rb:5: warning: already initialized constant SecretsHelper::SECRETS_FILE_CHEF_ATTR
/opt/gitlab/embedded/cookbooks/package/libraries/helpers/secrets_helper.rb:5: warning: previous definition of SECRETS_FILE_CHEF_ATTR was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/secrets_helper.rb:6: warning: already initialized constant SecretsHelper::SKIP_GENERATE_SECRETS_CHEF_ATTR
/opt/gitlab/embedded/cookbooks/package/libraries/helpers/secrets_helper.rb:6: warning: previous definition of SKIP_GENERATE_SECRETS_CHEF_ATTR was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/gitlab_cluster.rb:16: warning: already initialized constant GitlabCluster::CONFIG_PATH
/opt/gitlab/embedded/cookbooks/package/libraries/gitlab_cluster.rb:16: warning: previous definition of CONFIG_PATH was here
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/gitlab_cluster.rb:17: warning: already initialized constant GitlabCluster::JSON_FILE
/opt/gitlab/embedded/cookbooks/package/libraries/gitlab_cluster.rb:17: warning: previous definition of JSON_FILE was here
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:
[2024-05-29T01:47:11+00:00] INFO: Generating default secrets
[2024-05-29T01:47:13+00:00] INFO: Generating /etc/gitlab/gitlab-secrets.json file

================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
================================================================================

JSON::ParserError
-----------------
unexpected token at ''

Cookbook Trace: (most recent call first)
----------------------------------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/omnibus_helper.rb:207:in `parse_current_version'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/omnibus_helper.rb:213:in `check_deprecations'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:29:in `from_file'

Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/omnibus_helper.rb:

200:  
201:      LoggingHelper.deprecation(message)
202:    end
203:  
204:    def self.parse_current_version
205:      return unless File.exist?("/opt/gitlab/version-manifest.json")
206:  
207>>     version_manifest = JSON.parse(File.read("/opt/gitlab/version-manifest.json"))
208:      version_components = version_manifest['build_version'].split(".")
209:      version_components[0, 2].join(".")
210:    end
211:  
212:    def self.check_deprecations
213:      current_version = parse_current_version
214:      return unless current_version
215:  
216:      # We need configuration from /etc/gitlab/gitlab.rb in a structure similar

System Info:
------------
chef_version=18.3.0
platform=ubuntu
platform_version=22.04
ruby=ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client


Running handlers:
[2024-05-29T01:47:13+00:00] ERROR: Running exception handlers
Running handlers complete
[2024-05-29T01:47:13+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 04 seconds
There was an error running gitlab-ctl reconfigure:

unexpected token at ''

[2024-05-29T01:47:13+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-05-29T01:47:13+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-05-29T01:47:13+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-05-29T01:47:13+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-05-29T01:47:13+00:00] FATAL: JSON::ParserError: unexpected token at ''

@jdalrymple
Copy link
Owner Author

Looking at the manifest file, its empty.

@jdalrymple
Copy link
Owner Author

Maybe the immediate stop command is causing faulty startup of the gitlab container? Gonna test removing that portion of the CI and see if the spin up is more stable

@jdalrymple jdalrymple merged commit 272de6c into main Jun 3, 2024
2 checks passed
@jdalrymple jdalrymple deleted the ci/vm-specs branch June 3, 2024 03:41
@jdalrymple
Copy link
Owner Author

🚀 PR was released in 40.1.0 🚀

@jdalrymple jdalrymple added the released This issue/pull request has been released. label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released. type:testing Changes affect test code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant