Navigation

    SOFTWARE-TESTING.COM

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

    Posts made by yajahira

    • Share DNS name between two k8s services deployed in aws

      I want to share the same dns name for two services exposing same port for different protocol. Earlier i was doing this with metallb with this annotation and metallb was sharing the same ip for two svc.

      metallb.universe.tf/allow-shared-ip: mykey

      In the AWS environment metallb is not there and i want to use something similar. In internet i found this link https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/annotations/ for possible annotation in aws. but didn't find any dns shared annotation. Note :- My cluster is deployed using rke2 1.24.7 on aws instances. I am not using EKS.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How to get gcp project name by project id

      Using cloud function - trying to make get call to get the project name and with the id - https://cloud.google.com/resource-manager/docs/creating-managing-projects#listing_projects

       from googleapiclient import discovery
       from oauth2client.client import OAuth2Credentials as creds
       crm = discovery.build(
           'cloudresourcemanager', 'v3', 
            http=creds.authorize(httplib2.Http()))
      

      project = crm.projects().get(name="projects/"+projectId).execute()

      `

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How should I organize a large number of unrelated Infrastructure as Code projects?

      I work at a municipal government with many departments. Teams from these departments request new servers for specific uses/applications. Our environment is currently using VMware VSphere (~1500 VMs, 2 datacenters, 50 hosts/blades) and we'll be migrating gradually to Azure over the next few years.

      I'm just starting with Terraform and can build VMs with it, one at a time. Should I create one Terraform project per server? Or is it worth it to group them somehow? Most of the requests are for one or two servers at a time; sometimes up to four at a time. Each request tends to be unrelated to any previous requests.

      Is there a source that covers the theory of organizing something on this scale? Or should I just accept that we'll have to maintain 1500 sets of TF project files?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How Can I Escape Backspace Using Set_Fact In Ansible With Jinja Conditional

      I cannot figure out how to escape an HTML closing tag, in this example, when used inside an Ansible Jinja conditional (ansible 2.9.27 in this case). Using an additional backslash does not work and neither does putting the backslash between single quotes . Anyone have an idea how I can make this work?

      Here is my entire Playbook with credentials and email addresses redacted:

      - name: GET ADMIN GROUP USERS AND COMMENT (GECOS)
        ansible.builtin.shell: "lslogins --noheadings -g adm -o USER,GECOS|sed s'/$/
      /'" register: lslogins_output # # - name: FORMAT LIST FOR HTML EMAIL ansible.builtin.set_fact: email_machine_list: |- {% for host in ansible_play_batch %} {% if hostvars[host]['lslogins_output']['stdout'] | length > 0 %} {{ hostvars[host]['ansible_hostname']|upper }}:
      {{ hostvars[host]['lslogins_output']['stdout'] }}

      {% elif hostvars[host]['lslogins_output']['stdout'] | length == 0 %} {{ hostvars[host]['ansible_hostname']|upper }}:
      NO ADMINS FOUND

      {% endif %} {% endfor %} run_once: true delegate_to: localhost # # - name: EMAIL USER LIST mail: to: Me from: Ansible subject: "Ansible Notification" subtype: html body: '

      {{ email_machine_list }}



      ' host: mail.foo.bar port: 587 secure: starttls password: mypassword username: me@foo.bar run_once: true become: false delegate_to: localhost

      The emails I receive from Ansible appear like this. The should not appear and should be interpreted as a closing HTML tag:

      HOST1:
      syslog
      user1
      

      HOST2:<\b>
      syslog
      user1

      HOST3:<\b>
      syslog
      user1

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • Convert an existing s3 bucket policy into a terraform-managed policy?

      I have a large bucket policy historically maintained by hand.

      I'd like to move it into CI/terraform (for the policy maintenance), but I don't want TF to own the bucket itself.

      Is there any way to have TF "import" the huge existing policy and generate the TF file for it? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How to update nested arrays in mongodb database

      I have this mongodb schema:

      {
          "bsonType": "object",
          "required": [
              "group_wallet_id", "categories",
              "total_donations", "created_at"
          ],
          "properties": {
              "group_wallet_id": {
                  "bsonType": "objectId",
                  "description": "Id of the parent group"
              },
              "total_donations": {
                  "bsonType": "decimal",
                  "description": "Total donations"
              },
              "created_at": {
                  "bsonType": "date",
                  "description": "Wallet creation date"
              },
              "updated_at": {
                  "bsonType": "date",
                  "description": "Wallet update latest date"
              },
              "categories": {
                  "bsonType": "array",
                  "items": {
                      "bsonType": "object",
                      "required": [
                          "category_id", "donor_info",
                          "c_created_at", "c_updated_at"
                      ],
                      "properties": {
                          "category_id": {
                              "bsonType": "objectId",
                              "description": "Category unique id"
                          },
                          "donors_info": {
                              "bsonType": "array",
                              "items": {
                                  "bsonType": "object",
                                  "required": [
                                      "user_id", "total_balance", "d_created_date",
                                      "d_updated_date"
                                  ],
                                  "properties": {
                                      "user_id": {
                                          "bsonType": "objectId",
                                          "description": "User id"
                                      },
                                      "total_balance": {
                                          "bsonType": "decimal",
                                          "description": "Amount donated"
                                      },
                                      "d_created_at": {
                                          "bsonType": "date",
                                          "description": "The date the donation was made"
                                      },
                                      "d_updated_at": {
                                          "bsonType": "date",
                                          "description": "The latest update date"
                                      }
                                  }
      
                          }
                      },
                      "amount": {
                          "bsonType": "decimal",
                          "description": "The total amount donated for per category"
                      },
                      "c_created_at": {
                          "bsonType": "date",
                          "description": "The date the donation was made"
                      },
                      "c_updated_at": {
                          "bsonType": "date",
                          "description": "The latest update date"
                      }
                  }
              }
      
          }
      }
      

      }

      I am trying to update the categories array and after that the donors_info nested array. I have this:

      donor_3 = collection_one.update_one(
                                      {"group_wallet_id": ObjectId(data["group_wallet_id"])},
                                      {"$set": {"update_at": now}},
                                      {"$inc": {"total_donations": data["amount"]}},
                                      {"$push": {"categories": {
                                          "category_id": category_id,
                                          "categories.$.donors_info": {
                                              "user_id": ObjectId(user_id),
                                              "total_balance": convert_to_decimal128(data["amount"]),
                                              "d_created_at": now,
                                              "d_updated_at": now
                                          },
                                          "c_created_at": now, "c_updated_at": now,
                                          "amount": convert_to_decimal128(data["amount"]),
                                      }}}, session=session)
      

      I have tried this and unfortunately I am unable to do this. I using the pymongo lib in my app to access the monogodb atlas instance.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • Where can I find the default arguments supplied to the internal Kublet Service in k3s?

      If I want to find the default-arguments to the internal Kublet service, where can I find these documented?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • When and who should set a feature to "done" in Azure DevOps?

      We use Azure DevOps with the Scrum template to manage our product backlog. For each change request our customer asks for, we create a new feature with underlying PBIs (product backlog items) and tasks. Our developers set the PBIs to "done" as soon as the PBI passes the pull request.

      At the moment we don't have a standard that defines

      1. When the feature should be set to "done". That could be
      • as soon as all PBIs of the feature are set to "done"
      • as soon as the feature is deployed to the production environment
      • etc.
      1. Who is responsible for changing the status. That could be
      • the product owner
      • the developer that executes the deployment
      • etc.

      How do you manage the feature status in your teams?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment"

      Why do I get this error with Terraform,

      The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment".

      You can see the resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/internet_gateway_attachment . The full error is,

      │ Error: Invalid resource type
      │ 
      │   on main.tf line 26, in resource "aws_internet_gateway_attachment" "example":
      │   26: resource "aws_internet_gateway_attachment" "example" {
      │ 
      │ The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment".
      ╵
      

      this is the hdl I'm using

      resource "aws_internet_gateway_attachment" "example" {
        internet_gateway_id = aws_internet_gateway.gw.id
        vpc_id              = aws_vpc.main.id
      }
      

      I'm using version 3.75.1 of the AWS provider.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • RE: Use /execute data get on all players and set their spawnpoints

      Should be able to do something like this:

      execute as @a[nbt=!{SpawnX}] run spawnpoint @s 39 257 -16
      

      execute as @a[nbt=!{SpawnX}] run tp @s 39 257 -16

      In two repeating command blocks. Not 100% certain if the NBT format is valid but it’s a start

      posted in Game Testing
      Y
      yajahira
    • How to see the value of a piece of land that is owned by a company or government

      In Capitalism Lab, the land cost and the Customer Traffic Index is displayed when buying a piece of land that is not owned by a player or government.

      Buying an empty plot of land in Capitalism

      From my observations, the higher the Customer Traffic Index, the more valuable the land. How can I know the value or Customer Traffic Index of a piece of land after it has been bought by either a player or a government?

      To illustrate the problem, when I hover my mouse cursor over a piece of land owned by the government (beneath an apartment building owned by the government), the value of the land and its Customer Traffic Index are not shown:

      Attempting to buy a piece of land owned by the government

      How can I find the value of the land and its Customer Traffic Index?

      posted in Game Testing
      Y
      yajahira
    • RE: How do I make kelp elevator without drowning?

      You don't need to plant kelp from the very bottom to top.
      https://minecraft.fandom.com/wiki/Bone_meal can be used to grow kelp by 1 block on each use.

      posted in Game Testing
      Y
      yajahira
    • Where can I find an Albion Agent like this in Watch Dogs Legion?

      I was watching a tutorial on YouTube about the Relic in The Roman Wall, and the player was using this Albion Agent:

      enter image description here

      Where can I find an Albion Agent like this in London?

      posted in Game Testing
      Y
      yajahira
    • RE: If I delete game progress from my PlayStation, will it remove it from the ps+ cloud?

      No, don't worry.
      Online storage is independent from your local storage, so deleting a savefile does not affect your cloud backup. You need to manually delete files from the online storage. Cloud backup would be useless otherwise.

      This also works if you factory reset your console.

      posted in Game Testing
      Y
      yajahira
    • Does Family Share games keep save files on the cloud?

      Is saved progress for family shared games kept in the Steam cloud the same way my owned games?

      Another thing, say I bought Elden Ring on Account-A but I want to play it in Account-B, will family sharing it to Account-B and playing it there be exactly the same as actually buying Elden Ring on Account-B?

      What is the difference between playing an owned game and a family shared one? Aside from kicking me out of the game because they started playing.

      posted in Game Testing
      Y
      yajahira
    • How do you enter a login passcode without a dualshock controller?

      I haven't used my PS4 in quite some time. Now when I switch the PS4 on I'm taken to this screen.

      I can't find my old PS4 controller so I had to buy a new one, but it won't connect to the console, even with a new PS4 lead.

      I need help to get past this screen. I do know the passcode.

      This is what the passcode screen looks like:

      enter image description here

      posted in Game Testing
      Y
      yajahira
    • RE: Habitat base design strategy in Subnautica

      Then I could put corridors branching off from the MPRs (can you do that?)

      Yes, you can branch off corridors in 8 different directions, but in practice you will usually branch out in 4.

      What are the main considerations for different habitats such as these and how should I approach it?

      Location, location, location!

      Your habitat needs energy. At the beginning of the game, the most available energy source are solar panels, which give you a reason to build your habitat close to the surface.

      But you are also going to need space. You will want to expand your base a lot. Not because you have to. The things you actually must build to complete the game aren't actually that many. So a tiny base is actually viable. But you will want a larger base, because you will want some space to arrange containers to organize all the resources you are going to hoard and to place all the cosmetic items and furniture you are going to collect. And no habitat is complete without a mostly pointless but awesome looking multi-story https://subnautica.fandom.com/wiki/Alien_Containment_(Subnautica) . The resources you need to expand your base become pretty plentiful during the midgame, so there is little reason not to.

      In the midgame, you will unlock a very important room: The " https://subnautica.fandom.com/wiki/Moonpool_(Subnautica) ", a rectangular room which allows you to dock vehicles by entering it from below. This is a very large building (a bit larger than two MPRs next to each other) and you want plenty of space below it for convenient vehicle access. So if you plan to keep your first habitat, you should plan for where you are going to build your moonpool from the beginning. So it makes sense to build the habitat on the edge of a cliff, so you can place the moon pool hanging over it.

      Foundations are not really as important as they appear at first glance. They are mostly cosmetic. They can be used to increase https://subnautica.fandom.com/wiki/Hull_Integrity in the early game, but as soon as you get deep enough to collect Lithium, that purpose is taken over by the far more powerful and less intrusive https://subnautica.fandom.com/wiki/Reinforcement_(Subnautica) which you can slap onto any unused surfaces of your habitat. Another purpose of foundations is for placing outdoor grow beds near an entrance of your base for convenient farming of water plants.

      My approach in my second playthrough which I found pretty convenient was:

      1. Start by building a provisional base next to the lifepod, consisting of a single I-compartment, a hatch and solar panels on top. Its main purpose is to charge batteries.
      2. Explore the world from that base until I unlocked multi-purpose rooms and indoor storage lockers and hoarded a waterproof locker full of titanium.
      3. Build a proper base in a more spacious location. But still close enough to the surface to use solar power and not need too many reinforcements.
      4. Deconstruct the provisional base and storage lockers and move everything in it to the new base.
      posted in Game Testing
      Y
      yajahira
    • How do you get other lockers?

      I see in the locker room other lockers.

      But looking around I havent seen anywhere where I can get another locker type.

      So where do you get them?

      posted in Game Testing
      Y
      yajahira
    • Is there a finite number of power armor sets in Fallout 4?

      I've been playing Fallout 4 on survival mode and have been trying to scavenge every piece of equipment that helps keep me from dying. To this effect, I've been arming my settlers with sets of power armor and strong weapons. They're too likely to be killed by raiders otherwise and leave my settlements undefended.

      While I can find some decent weapons on most enemies I kill the power armor frames are a little more scarce to find. I've seen power armor frames for sale at a few merchants. Does this mean that as long as I have the caps I can buy more sets upon merchant restock, or is their supply finite?

      posted in Game Testing
      Y
      yajahira
    • RE: Where can I find Aravinay?

      To get back to Mahavanaranapna (for example, after you complete the World of Aranara series of quests), you need to perform the Rhythm of the Great Dream to the silapna in Vanarana.

      The silapna in Vanarana

      Once you are back inside the dream, you can find Aravinay stood in front of the Tree of Dreams.

      posted in Game Testing
      Y
      yajahira
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1488
    • 1489
    • 1 / 1489