Navigation

    SOFTWARE-TESTING.COM

    • Register
    • Login
    • Search
    • Jobs
    • Tools
    • Companies
    • Conferences
    • Courses
    1. Home
    2. chanisef
    3. Posts
    C
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by chanisef

    • RE: How to create, but not overwrite, a file and manage its permissions with ansible?

      The most obvious candidate to this task is ansible.builtin.file with state: touch.

      Right, this could be an option.

      However, it always appears as changed as the times need to be updated.

      According the documentation https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html#parameters not necessarily since access_time and modification_time

      Should be preserve when no modification is required

      The following minimal example

      ---
      - hosts: localhost
        become: false
        gather_facts: false
      

      tasks:

      • name: Create file
        file:
        path: "/home/{{ ansible_user }}/test.file"
        owner: "{{ ansible_user }}"
        group: "users"
        access_time: preserve
        modification_time: preserve
        state: touch

      • name: Touch again
        file:
        path: "/home/{{ ansible_user }}/test.file"
        owner: "{{ ansible_user }}"
        group: "users"
        access_time: preserve
        modification_time: preserve
        state: touch

      will result into an output of

      TASK [Create file] ***************************
      changed: [localhost]
      

      TASK [Touch again] ***************************
      ok: [localhost]

      PLAY RECAP ***********************************
      localhost : ok=2 changed=1

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • Terraform conditional block inside a map

      I have an https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function resource like below:

      resource "aws_lambda_function" "mylambda" {
      
      #...
      
      environment {
          variables = {
              FOO = 1
          }
      }
      

      }

      I'm tring to add some environment variables dynamically based on my var.enable_vars

      variable "enable_vars" {
        type        = bool
        default     = false
      }
      

      resource "aws_lambda_function" "mylambda" {

      #...
      
      environment {
          variables = {
              FOO = 1
      #### if var.enable_vars == true
      #       BAR = 2
      #       BAZ = 3
          }
      }
      

      }

      How to achieve that? Is not clear to me if a dynamic block can be used there.

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: Is there a safe way to archive Azure App Services application settings?

      Ideally, you would be injecting these via an appsettings.json, Key Vault reference or something and not manually setting these in the Configuration panel itself. In terms of archiving the actual values etc, this is probably most easily accomplished via the https://learn.microsoft.com/en-us/rest/api/appservice/web-apps . There are several CRUD operations that can GET, UPDATE, etc configurations/application settings which should be able to allow you to accomplish what you have asked here.

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • Why does stripping executables in Docker add ridiculous layer memory overhead?

      On https://github.com/T145/black-mirror/blob/master/Dockerfile#L55 , I ran the following command to reduce executable sizes:

      find -P -O3 /usr/bin/ /usr/local/bin -type f -not -name strip -and -not -name dbus-daemon -execdir strip -v --strip-unneeded '{}' \;
      

      And its size jumped up from ~779.53 to ~986.55MB!

      As an attempt to bypass this caveat I created an intermediate layer to copy the changes over from, like so:

      FROM base as stripped
      

      RUN find -P -O3 /usr/bin/ /usr/local/bin -type f -not -name strip -and -not -name dbus-daemon -execdir strip -v --strip-unneeded '{}' ;

      FROM base

      COPY --from=stripped /usr/bin/ /usr/bin/
      COPY --from=stripped /usr/local/bin/ /usr/local/bin/

      However the resulting image size did not change. Also note that the base image has other programs installed on it, so simply using another Debian distribution as the intermediate layer wouldn't cover stripping each program on the base image.

      Why is this large size difference happening? Is there a way to strip executables in Docker at all without having this happen?

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • Variable for Terraform Workspace name?

      When I run terraform apply in a new workspace, I get

      openstack_networking_port_secgroup_associate_v2.network_project_k3s: Creation complete after 1s [id=4543b73b-541e-40c3-a311-5b1f553b9d58]
      ╷
      │ Error: Error trying to get network information from the Network API: More than one network found for name net_project
      │ 
      │   with openstack_compute_instance_v2.test-server,
      │   on main.tf line 137, in resource "openstack_compute_instance_v2" "test-server":
      │  137: resource "openstack_compute_instance_v2" "test-server" {
      

      I suppose I'm getting this because OpenStack's network names are globally unique. How can I incorporate the workspace name in the network name?

      resource "openstack_networking_network_v2" "net_project" {
        name           = "net_project_${WORKSPACE}"
        admin_state_up = "true"
      }
      
      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: What permission is required to deploy release?

      Found it!

      The permissions are set on each release pipeline itself:

      enter image description here

      "Manage Deployments" allows users to come in and deploy to their environment without allowing them to edit the pipeline.

      enter image description here

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • How to fetch azure secret if exist in KV using terraform

      I am using below terraform code for fetch azure secret and this is working fine when secret is exist in the azure KV.

      Getting error when secret is not available in KV.

      data "azurerm_key_vault_secret" "win_admin_pass" {
          name         = "${var.secret_name}"
          key_vault_id = "${data.azurerm_key_vault.keyvault.id}"
      }
      

      In my case, this secret may available or may not available.

      How can we ignore error for this particular task when secret not available, or how can we check if secret exist or not, based on this condition we can fetch and ignore set of code?

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: kubernetes daemonset fails to pull docker image from the cluster

      One way to fix this if that's allowed is by setting insecure-registries on the host's docker config:

      sudo cat /etc/docker/daemon.json
      

      {
      "insecure-registries" : [ "10.10.10.10:5000" ]
      }

      restart docker daemon after this

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: How do I get k3s to authenticate with Docker Hub?
      1. Update your /etc/rancher/k3s/registries.yaml to
        configs:
          registry-1.docker.io:
            auth:
              username: evancarroll
              password: TOKENHIDDEN
        
      2. Restart k3s, sudo systemctl force-reload k3s.

      You can confirm the changes were accepted by checking that your key exists in /var/lib/rancher/k3s/agent/etc/containerd/config.toml.

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: KubeApps: Invalid GetAvailablePackageSummaries response from the plugin helm.packages: ... Unable to fetch chart categories

      Upstream Answer -- Networking Problem.

      Though I'm getting this on a fresh install I was guided to this which indicates a bigger problem,

      kubectl -n kubeapps exec deployment/kubeapps -- curl -sI https://charts.bitnami.com/bitnami/index.yaml
      

      this returns "command terminated with exit code 6".

      I can further identify the problem with nslookup, without using Kube Apps by following the [k3s tutorial on troubleshooting dns] https://rancher.com/docs/rancher/v2.5/en/troubleshooting/dns/ )

      kubectl run -it --rm --restart=Never busybox --image=busybox:1.28 -- nslookup www.google.com
      

      Follow up

      Now that I know what this problem is (with external DNS resolution), I've asked this question for more information https://devops.stackexchange.com/questions/16161/newly-installed-k3s-cluster-on-fresh-os-install-can-not-resolve-external-domains

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • How to solve my error about saving the global configuration before it is loaded in Jenkins?

      I recently upgraded Jenkins from 2.204.4 to 2.332.1. In doing so, I received the following error.

      java.lang.IllegalStateException: An attempt to save the global configuration was made before it was loaded
          at jenkins.model.Jenkins.save(Jenkins.java:3519)
          at jenkins.model.Jenkins.saveQuietly(Jenkins.java:3546)
          at jenkins.model.Jenkins.setSecurityRealm(Jenkins.java:2743)
          at jenkins.model.Jenkins$15.run(Jenkins.java:3481)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1156)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
          at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused: org.jvnet.hudson.reactor.ReactorException
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291)
          at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
          at jenkins.model.Jenkins.executeReactor(Jenkins.java:1191)
          at jenkins.model.Jenkins.(Jenkins.java:981)
          at hudson.model.Hudson.(Hudson.java:86)
          at hudson.model.Hudson.(Hudson.java:82)
          at hudson.WebAppMain$3.run(WebAppMain.java:247)
      Caused: hudson.util.HudsonFailedToLoad
          at hudson.WebAppMain$3.run(WebAppMain.java:264)
      

      I was able to "fix" this by commenting out the and blocks in config.xml, but that had the side effect of wiping out our Active Directory settings as well as all Role Based permissions.

      I saved the settings, so I was able to manually set everything back up, but now after a Jenkins reboot, I get the same error.

      I noticed in the Jenkins error log it is throwing the following error for all users on startup

      SEVERE  hudson.model.User#loadFromUserConfigFile: Failed to load E:\jenkins\users\{user}\config.xml
      java.nio.channels.ClosedByInterruptException
      

      I am rather new to Jenkins, so I am not sure what would be causing this. Has anyone encountered this or know of a fix?

      Edit: As mentioned in my comment I discovered the error is due to the role-strategy plugin. I attempted to use the Configuration as Code plugin, thinking that this would load the config.xml settings at the correct time, but that is not the case.

      The issue is that there is still info in block in config.xml when Jenkins restarts... is there a way to clear that?

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • Mac M1 Docker Desktop no longer launches

      I’ve been using Docker Desktop on my Mac M1 for over a year without trouble and just today it seems to have stopped working. It may have coincided with an update.

      When trying to open Docker Desktop by double clicking the Docker App icon, it just doesn’t open (and no error message is displayed - it seems to fail silently). When I try to start it up via docker-compose on the cli, the below exceptions are thrown. Could anyone please advise next course of action?

      Many thanks.

      manachi@macmone lamp % docker-compose up -d
      Traceback (most recent call last):
        File "urllib3/connectionpool.py", line 670, in urlopen
        File "urllib3/connectionpool.py", line 392, in _make_request
        File "http/client.py", line 1255, in request
        File "http/client.py", line 1301, in _send_request
        File "http/client.py", line 1250, in endheaders
        File "http/client.py", line 1010, in _send_output
        File "http/client.py", line 950, in send
        File "docker/transport/unixconn.py", line 43, in connect
      FileNotFoundError: [Errno 2] No such file or directory
      

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "requests/adapters.py", line 439, in send
      File "urllib3/connectionpool.py", line 726, in urlopen
      File "urllib3/util/retry.py", line 410, in increment
      File "urllib3/packages/six.py", line 734, in reraise
      File "urllib3/connectionpool.py", line 670, in urlopen
      File "urllib3/connectionpool.py", line 392, in _make_request
      File "http/client.py", line 1255, in request
      File "http/client.py", line 1301, in _send_request
      File "http/client.py", line 1250, in endheaders
      File "http/client.py", line 1010, in _send_output
      File "http/client.py", line 950, in send
      File "docker/transport/unixconn.py", line 43, in connect
      urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "docker/api/client.py", line 214, in _retrieve_server_version
      File "docker/api/daemon.py", line 181, in version
      File "docker/utils/decorators.py", line 46, in inner
      File "docker/api/client.py", line 237, in _get
      File "requests/sessions.py", line 543, in get
      File "requests/sessions.py", line 530, in request
      File "requests/sessions.py", line 643, in send
      File "requests/adapters.py", line 498, in send
      requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "docker-compose", line 3, in
      File "compose/cli/main.py", line 81, in main
      File "compose/cli/main.py", line 200, in perform_command
      File "compose/cli/command.py", line 60, in project_from_options
      File "compose/cli/command.py", line 152, in get_project
      File "compose/cli/docker_client.py", line 41, in get_client
      File "compose/cli/docker_client.py", line 170, in docker_client
      File "docker/api/client.py", line 197, in init
      File "docker/api/client.py", line 221, in _retrieve_server_version
      docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
      [767] Failed to execute script docker-compose

      posted in Continuous Integration and Delivery (CI
      C
      chanisef
    • RE: Can a Pokemon remember a move they previously had, but are not normally able to learn?

      In Gen IX, it seems Pokemon can re-learn any move they ever knew, even if it's from a TM or an event. As demonstrated in the screenshot (Move was forgotten beforehand.)

      Screenshot of a special event Pikachu able to remember Fly

      posted in Game Testing
      C
      chanisef
    • RE: What is the origin of Boos? Dead people or they just are?

      According to the https://en.wikipedia.org/wiki/Boo_(character) :

      In an interview with Nintendo Power magazine, Mario franchise creator Shigeru Miyamoto stated that while working on Super Mario Bros. 3, co-designer Takashi Tezuka had the idea of putting his wife in the game. According to Miyamoto, "(Tezuka's) wife is very quiet normally, but one day she exploded, maddened by all the time he spent at work.[...]"

      Boos appear as white, spherical, levitating ghosts, similar to the will-o'-the-wisp phenomenon or the Japanese Hitodama

      So it seems that they are inspired by the "Will-o-wisp" folklore, rather than spirits of the dead. The Will-o-wisp folklore makes them out to be mischievous beings, often leading travelers to traps in the bogs and swamps, (depending on which tales you read, that is).

      posted in Game Testing
      C
      chanisef
    • RE: What is the Mr. Grizz statue supposed to be? (Spoilers)

      The normal Mr. Grizz statue is a bear eating a fish. The post-game statue is a fish eating a bear, presumably meant to evoke the image of Hugefry from the final boss sequence.

      posted in Game Testing
      C
      chanisef
    • RE: How do I check which upgrades I've collected?

      I fear that the only way is your own, hopefully non-volatile - internal memory. The game does not have any form of radar or feature that lists the content of each level. That said, it is also quite easy to just memorize where everything is.

      There are just four armor piece: the leg parts is actually unmissable since you are forced to walk thru the capsule in the first place, armor and helmet parts are hidden and miss-able and while the arm part is hidden too the game actually gives you the upgrade for story reasons during the final stages if you haven't get it by then.

      The subtank capsules are also just four and should be easy to check for.

      The real "problem" are the health upgrades since each stage has one of those. I guess that your only option is to check every stage to see which ones you already got. Luckily they are not that hidden.

      posted in Game Testing
      C
      chanisef
    • Aranyaka - What quests do I have to complete to unlock the tree in Sumeru?

      Starting from version 3.0 with Sumeru release, the world quest Aranyaka is a big cluster of quest lines when you enter Part II of it (Dream Nursery)

      The only quest line I have finished from part II is the one with the infamous Aranakin and his friends (I now have the whithered Kusava)

      Do I have to finish all of Dream Nursery to unlock Sumeru's "tree" where I can submit my dendro sigils? Or do I have to finish a specific Dream Nursery quest line? Or worse, do I have to finish Part III and/or Part IV?

      posted in Game Testing
      C
      chanisef
    • Is it possible to "cheat" items into my inventory in survival mode?

      There is a game I enjoy called junon.io, and I want to be able to cheat in items so I can get a bit more enjoyment out of certain maps. I want to use the chrome inspect console, but I don't know what code would give me items. It is mostly fun but some maps get stale after a while.

      I will not be using this for multiplayer, only for the survival mode.

      posted in Game Testing
      C
      chanisef
    • How do I factory reset my Steam Deck?

      I've been having some technical issues with my Steam Deck and want to see if factory resetting it to stock SteamOS will solve them. How do I factory reset my Steam Deck?

      posted in Game Testing
      C
      chanisef
    • RE: path help with Proton and EA Origin on Ubuntu

      According to https://www.reddit.com/r/linux_gaming/comments/sbv42l/tutorial_how_to_play_origin_games_through/hu35ppu?context=3 Proton is bad for non-Steam games. The gist of it is that Proton is creating a container with everything it needs and circumventing that effectively negates using Proton. Lutris is considered a best alternative; it's been around for many years and supports a lot of games and launchers, and it's also Wine-based like Proton.

      As for the issue there seems to be a variety of problems:

      • . at the start of a path points to "the directory this program was started from". If you're using the long path listed above to point the Steam/Origin client to the game it's likely interpreting it something like "./.steam/debian-installation/steamapps/compatdata/4132860189/pfx/drive_c/Program Files (x86)/Origin Games/Mass Effect Legendary Edition/&./.steam/debian-installation/steamapps/compatdata/4132860189/pfx/drive_c/Program Files (x86)/Origin Games/Mass Effect Legendary Edition/Game/ME3/Binaries/Win64/MassEffect3.exe", which is clearly just broken (& for separating the combined paths, not an actual part of it).

      • \ does not work for paths on Unix-like systems as it "escapes" the next character. So, \P may be getting converted to a single character, which destroys the path. On the other hand / does work for paths on Windows.

      Using an absolute path rather than relative should help, though we already know getting this particular thing working would be a bad idea anyways. Relative paths begin with ./ or ../, so they can start from wherever. Absolute paths start at the root of a storage device, like / on Unix-like systems or C:\ on Windows. It's like using "follow the landmarks" directions vs following someone who definitely knows the way.

      posted in Game Testing
      C
      chanisef
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1497
    • 1498
    • 1 / 1498