Navigation

    SOFTWARE-TESTING.COM

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

    Posts made by courtlanda

    • How do I configure a Readiness Probe for Selected Services?

      I have 2 pods and my application is based on a cluster i.e. application synchronizes with another pod to bring it up. Let us say in my example I am using appod1 and appod2 and the synchronization port is 8080.

      I want the service for DNS to be resolved for these pod hostnames but I want to block the traffic from outside the apppod1 and appod2.

      I can use a readiness probe but then the service doesn't have endpoints and I can't resolve the IP of the 2nd pod. If I can't resolve the IP of the 2nd pod from pod1 then I can't complete the configuration of these pods.

      E.g.

      app1_sts.yaml

      apiVersion: apps/v1
      kind: StatefulSet
      metadata:
        labels:
          cluster: appcluster
        name: app1
        namespace: app
      spec:
        selector:
          matchLabels:
            cluster: appcluster
        serviceName: app1cluster
        template:
          metadata:
            labels:
              cluster: appcluster
          spec:
           containers:
             - name: app1-0
               image: localhost/linux:8
               imagePullPolicy: Always
               securityContext:
                privileged: false
               command: [/usr/sbin/init]
               ports:
               - containerPort: 8080
                 name: appport
               readinessProbe:
                  tcpSocket:
                    port: 8080
                  initialDelaySeconds: 120
                  periodSeconds: 30
                  failureThreshold: 20
               env:
               - name: container
                 value: "true"
               - name: applist
                 value: "app2-0"
      

      app2_sts.yaml

      apiVersion: apps/v1
      kind: StatefulSet
      metadata:
        labels:
          cluster: appcluster
        name: app2
        namespace: app
      spec:
        selector:
          matchLabels:
            cluster: appcluster
        serviceName: app2cluster
        template:
          metadata:
            labels:
              cluster: appcluster
          spec:
           containers:
             - name: app2-0
               image: localhost/linux:8
               imagePullPolicy: Always
               securityContext:
                privileged: false
               command: [/usr/sbin/init]
               ports:
               - containerPort: 8080
                 name: appport
               readinessProbe:
                  tcpSocket:
                    port: 8080
                  initialDelaySeconds: 120
                  periodSeconds: 30
                  failureThreshold: 20
               env:
               - name: container
                 value: "true"
               - name: applist
                 value: "app1-0"
      

      Check the Statefulset

      [root@oper01 onprem]# kubectl get all -n app
      NAME             READY   STATUS    RESTARTS        AGE
      pod/app1-0       0/1     Running   0               8s
      pod/app2-0       0/1     Running   0               22s
      

      NAME READY AGE
      statefulset.apps/app1 0/1 49s
      statefulset.apps/app2 0/1 22s

      kubectl exec -i -t app1-0 /bin/bash -n app

      [root@app1-0 ~]# nslookup app2-0
      Server: 10.96.0.10
      Address: 10.96.0.10#53

      ** server can't find app2-0: NXDOMAIN

      [root@app1-0 ~]# nslookup app1-0
      Server: 10.96.0.10
      Address: 10.96.0.10#53

      ** server can't find app1-0: NXDOMAIN

      [root@app1-0 ~]#

      I understand the behavior of the readiness probe and I am using it as it helps me to make sure service should not resolve to app pods if port 8080 is down. However, I am unable to make out how can I complete the configuration as app pods need to resolve each other and they need their hostname and IPs to configure. DNS resolution can only happen once the service has end points. Is there a better way to handle this situation?

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • How do I install BlackDuck on mac?

      I am trying to scan container images using the blackdock scanning tool. Unfortunately, I couldn't find any free version to play around with; please provide guidance and the simplest way to scan the docker images.

      I have tried using this resource - https://github.com/blackducksoftware?q=docker&type=all&language=&sort= . Not able to install it.

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • Ansible / Jinja2 Unexpected templating type error

      I am trying to take a dictionary from one or more async tasks "register: task_variable" then collecting it as a list based on its id's and running a wait task using async_status on the resulting list generated from the id's

      But i am getting an "Unexpected templating type error" with the Jinja "sync_do_list() takes 1 positional argument but 2 were given"

      I've been trying various things for hours too many to remember and i just cant get past this

      Here is the code in it's current form:

      loop: "{{ (task_variable.results|default({}, true)) | selectattr('ansible_job_id') | map(attribute='ansible_job_id') | list([]) }}"
      

      Some of the wait tasks add together multiple test_variables if multiple asyncs need to complete to proceed

      Some of the tasks that generate the task_variables are wrapped in whens so may never generate a variable hence why i am doing a loop like that to be able to handle them all as appropriate

      The code is on my work laptop so hard to get it over without manually typing it, but this is the only piece that really matters, any help would be appreciated. thanks.

      Edit:

      So to fix that error I had to change list([]) to list

      The end result however is has been changed to

      loop: "{{ [task1, task2, task3, task4] | selectattr('results', 'defined') | map(attribute='results') | selectattr('ansible_job_id', 'defined') | map(attribute='ansible_job_id') | list }}"
      

      Where any of the tasks can be empty or undefined and they will get filtered out correctly but must remain as a list even if only checking one task

      The resulting {{ item }} can be passed into an async_status and avoids having to check what is defined and what isn't via when statements and such.

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • RE: Does Jenkins essentially function like a package manager for your software product?

      Sorta, but the additional process it does is compilation of the source code (or linking to a jenkins agent that compiles the code). Then it can deploy the finished build to wherever you tell it. This could be just outputting the build to a network share, or it could be sending it to a virtual machine or docker container to run and test for bugs 😄

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • RE: How can you validate that registries.yaml is set properly?

      The /etc/rancher/k3s/registries.yaml is read by https://devops.stackexchange.com/q/16152/18965 . You can validate it works properly with a command like this,

      sudo k3s crictl pull     docker.io/alpine:3
      sudo k3s ctr images pull docker.io/library/alpine:3
      
      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • RE: What is difference between testing in context of CI and CT pipelines?

      Continuous Testing is a https://en.wikipedia.org/wiki/Continuous_integration of Continuous Integration. CI's main purpose is to integrate your development efforts into a production-ready state as often as possible. The production-readiness is granted via continuously testing the recently integrated code. Continuous Integration does not work properly without Continuous Testing, but you could continuously test without making your development code production ready all the time. In my experience the CT term is not really in use anymore.

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • RE: Create a folder in slave node using Jenkins pipeline groovy script

      Issue got resolved with the use of https://www.jenkins.io/doc/pipeline/steps/file-operations/ methods like folderCreateOperation & fileCreateOperation. Example code snippet below:

      def path = "${workspace}\submodule\newFolder"
      fileOperations([folderCreateOperation(folderPath: path)])
      dir(path) {
          fileOperations([fileCreateOperation(fileName: 'newFile.properties', fileContent: 'Git_Tag=${env.Git_Tag}')])
      }
      
      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • RE: Growing local development environment issues

      I recommend running all the dependent microservices on cloud and deploy only the microservice that is under active development in your laptop.

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • Ansible no user $HOME by default - so how do I run commands

      I have thousands of servers that, by default, for security and space do not create a $HOME when you ssh in.

      This seems to be posing a problem for Ansible as it keeps trying to chdir to home that does not exist. Can I get Ansible to use another directory in the ansible.cfg or just stop this behaviour completely?

      ansible.cfg

      [defaults]
      

      inventory = /home/welshch/.ansible/hosts
      remote_tmp = /tmp
      local_tmp = ~/.ansible/tmp
      interpreter_python = auto_silent
      roles_path = /home/eekfonky/.ansible/roles
      host_key_checking = False

      Here is the error with the server name changed for security reasons;

      ☁  .ansible  ansible-playbook get_fleet_info.yml -vvvv
      fatal: [ldap-corp-search-server.com]: FAILED! => {
          "ansible_facts": {
              "discovered_interpreter_python": "/usr/bin/python"
          },
          "changed": false,
          "module_stderr": "OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/eekfonky/.ssh/config\r\ndebug1: /home/eekfonky/.ssh/config line 2: Applying options for *\r\ndebug3: /home/eekfonky/.ssh/config line 9: Including file /home/eekfonky/.ssh/bastions-config depth 0\r\ndebug1: Reading configuration data /home/eekfonky/.ssh/bastions-config\r\ndebug1: /home/eekfonky/.ssh/bastions-config line 10: Applying options for *.corp.amazon.com\r\ndebug1: /home/ekfonky/.ssh/bastions-config line 35: Applying options for *.pdx*.server.com\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 27395\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to ldap-corp-search-server.com closed.\r\n",
          "module_stdout": "Could not chdir to home directory /home/eekfonky: No such file or directory\r\n",
          "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
          "rc": 1
      }
      
      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • Is there a way to install a private key for a user with cloud-init?

      I have a user that needs to authenticate against a company source repository when using git clone. To set this up for the user I need to specify a users private key (not the host private key in /etc). Is there a method to do this?

      The user it configured with https://cloudinit.readthedocs.io/en/latest/topics/examples.html?highlight=system_info#including-users-and-groups , which doesn't have a mechanism to install the user's private key.

      Note: Let's say you're provisioning a a new machine and adding a user bob on it. How do you install a private key for a bob such that he can authenticate with something using ssh?

      posted in Continuous Integration and Delivery (CI
      C
      courtlanda
    • Where can I find limber scales?

      I am having trouble finding Limber Scales for item crafting. I have a few of them, but I don't know where I got them from. Where can I find Limber Scales?

      posted in Game Testing
      C
      courtlanda
    • Is everything, including mods, limited to pixels in Minecraft Java?

      I am currently making a mod mostly about color and design for creative mode, and I've been trying to figure out what function or tool should be made so users can decide on the color they want to use. There is one that I definitely will make which is the Eyedropper tool which would pick up a certain pixel's color. I am unsure of the other, which would best be if it was a block with a tool like https://www.canva.com/colors/color-wheel/ , but I wanted to check if it is possible for gradients to be included in a Minecraft block with a block entity, or would it end up turning pixelated?

      This is an example of what I mean by pixelated vs not pixelated (even though, yes, they both end up getting pixelated because they later turn out not being vectors anymore). These are both saved as 64px * 64px, but if you zoom in on them to be the same size, they look different.

      72Ppi image

      vs

      300Ppi image

      posted in Game Testing
      C
      courtlanda
    • RE: Is there a true PS5 version of GTA 5?

      The PS5 version is called "GTA 5: Expanded & Enhanced Edition", and these are the improvements:

      Single player

      PS5 PS4
      Three graphical options, including 4K and 60 frames-per-second 1080p, 30 frames-per-second
      Seamless character switching Longer loading times
      Upgraded textures and draw distance Standard textures and draw distance
      Raytracing support in select graphical modes No raytracing
      HDR support No HDR support
      3D audio support Stereo audio
      DualSense controller support with haptic feedback Standard rumble feedback
      Improved gameplay and controls Standard gameplay and controls

      GTA Online

      PS5 PS4
      Career Builder to help new players get started No Career Builder
      New main menu loading stream highlighting promoted content Standard loading screen
      Hao's Special Works for brand new, new-gen exclusive speed modifications No speed improvement modifications
      Hao's Special Works Time Trial events No Hao's Special Works Time Trial events
      Hao's Special Works Premium Test Ride No Hao's Special Works Premium Test Ride
      Upgraded textures and draw distance Standard textures and draw distance
      Raytracing support in select graphical modes No raytracing
      HDR support No HDR support
      3D audio support Stereo audio
      DualSense controller support with haptic feedback Standard rumble feedback
      Improved gameplay and controls Standard gameplay and controls

      Sources: https://www.pushsquare.com/guides/gta-5-all-ps5-vs-ps4-differences and https://www.gtabase.com/news/grand-theft-auto-v/title-updates/gta-5-ps5-xbox-series-x-s-all-new-features-for-expanded-enhanced-edition .

      It seems a different game, and not a simple upgrade you can do on you PS4 version.

      posted in Game Testing
      C
      courtlanda
    • Which handheld console performs better with larger game ports?

      I own the Nintendo Switch and am quite happy with its format when it comes to travelling and playing on the go, but the hardware sure has its limitations and struggles with bigger games, especially with the graphics.

      Does the Steamdeck perform better with game ports like The Witcher Wild Hunt, No Man's Sky, Civilization compared to the Switch?

      Or does the Steam deck use genuinely PC versions of games and runs it on a downscaled version?

      posted in Game Testing
      C
      courtlanda
    • RE: What is the fastest way to find an End City in The End dimension?

      There's no way to quickly find an End City, because the generation is entirely luck based. What you should do is once you exit the end portal, pick any cardinal direction and just head straight that way, moving to the left and right between islands when you need to cover more ground.

      posted in Game Testing
      C
      courtlanda
    • Did DOOM for SNES support the SNES mouse and Super Scope?

      I have just watched a video interview with the programmer for the SNES port of DOOM:

      I did not note the timestamp, but at one point he mentions how he wanted to have "as many feature icons as possible" on the box art, and said how the game supported the Super Scope, the mouse, XBAND, etc.

      Afterwards, I tried to look up both videos of the mouse in action and tried to view scans of the box's front and back, but saw no mention of mouse or Super Scope support.

      Shouldn't there be some video showing this off if it actually supported those controllers? It would be amazing to see how "smooth" the player moves with the mouse.

      I also did not see the game listed in a list of mouse-supporting SNES games. But then why did he say that in the interview? It didn't seem like a joke to me.

      posted in Game Testing
      C
      courtlanda
    • What are those shiny things?

      Normally those appear around place with collectibles but for some reason here there is nothing. Found multiple in High Isle.

      Any idea what they are?

      enter image description here

      posted in Game Testing
      C
      courtlanda
    • How do the white plus numbers work in ranked mode?

      When playing a ranked match in Splatoon 3 there will sometimes be white "plus" numbers that appear below the team scores. I've seen them in both Splat Zones and Clam Blitz.

      What do these white plus numbers mean?

      white plus numbers in splat zones

      posted in Game Testing
      C
      courtlanda
    • RE: Which hat is the most armored?

      According to https://unturned.fandom.com/wiki/Template:Navbox/Clothing_3#Hat , there are 24 hats to be found on Survival Offical Maps:

      15% Damage Reduction:

      • Coalition Helmet
      • Fighter Pilot Helmet
      • Military Helmet
      • Pickelhaube
      • Spec Ops Helmet

      10% Damage Reduction

      • Construction Helmet
      • Engineer Hat
      • Firefighter Helmet

      5% Damage Reduction:

      • Beret
      • Cap
      • Coalition Beret
      • Coalition Cap
      • Chef Hat
      • Fedora
      • Fishing Hat
      • Ghillie Hood
      • Mafia Fedora
      • Police Cap
      • Pilot Cap
      • RCMP Hat
      • Spec Ops Beret
      • Tophat
      • Toque

      0% Damage Reduction:

      • Farmer Hat
      posted in Game Testing
      C
      courtlanda
    • How do I cancel searching for a multiplayer match?

      I started queuing up for a multiplayer match in Splatoon 3 only to realize I needed to take care of something first. How do I cancel searching for a multiplayer match?

      matchmaking

      posted in Game Testing
      C
      courtlanda
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1500
    • 1501
    • 1 / 1501