Skip to main content

Posts

Back to Basics - Some OCI User-group deletion issues

Recently, I created a group and added user to that group for some testing.  Username - Useradmin001 Groupname - sysadmin01 Once testing was done, I decided to delete both user and group. When trying to delete a Useradmin001 user belonging to a group, I received below error notification on OCI- Cannot delete Useradmin001. A user in a group can’t be deleted. So I thought of deleting group as they both (group and user) were being used to testing and not needed anymore. Cannot delete sysadmin01. A group with members can’t be deleted. Finally figured out that we need to perform below steps - 1. Delete member from group first like as follows (remove group membership) 2. Delete group. (this time it went through. :))    3. Delete user.

Understanding -msimode for managed servers and how it can be used with Oracle EBS r12.2

  Recently, I was asked implications of Admin server availability when connecting to Oracle EBS login Page. When pondering further, Few scenarios that arise were - 1. What if running Admin server goes down for some reason, will this impact managed servers that are already running? 2. Can we start managed server (say oacore_server1) if admin server is down? How? Let's start understanding relationship between admin server and managed server. Admin server  is the central entity for configuration of entire domain. You manage and  configure all resources in the domain through admin server. Config.xml is loaded by Admin server during its startup. This file is stored under - $FMW_Home/user_projects/domains/EBS_domain/config Managed server  is responsible for hosting components and associated resources that comprise your application (ex. JSPs, EJBs,datasources,JMS Modules,etc). During startup of managed server, it will reach out to admin server and get configuration and depl...

Terraform Diary - Desired State and Current State scenarios with OCI

  Desired state of a resource can be simply defined as the state that is mentioned in your resource block of tf file. Current state of a resource is the actual configuration state for the resource. This may be different from desired state mentioned in .tf file.   Terraform will only synchronize current state(changes done manually in console) to desired state(changes mentioned in your tf file) for attributes that are explicitly mentioned in your tf file. Case 1 – Please consider below example, note that object bucket ‘test_bucket is already present on OCI – resource "oci_objectstorage_bucket" "test_bucket" {     #Required     compartment_id = "${var.compartment_ocid}"     name = "test_bucket"     namespace = "${var.namespace}"     versioning = "Enabled"         }     We added versioning attribute in our tf file and current state for...

"Connection timed out" when mouting file storage service on OCI instances

  Issue -  Recently faced below 'Connection Timed Out' Error when trying to mount a freshly created OCI file system. Would like to share my experience and document this for future references. I am using public and private subnets with security lists defined for each. File system is created in the private subnet and faced below issue when trying to mount it from an instance in the same private subnet, sudo mount -v 10.3.2.10:/fssfortestcomp /mnt/fssfortestcomp mount.nfs: timeout set for Wed Sep  9 06:27:20 2020 mount.nfs: trying text-based options 'vers=4.1,addr=10.3.2.10,clientaddr=10.3.2.2' mount.nfs: mount(2): Connection timed out Documenting list of ports that need to be open for mounting a file storage service on OCI instances on private/public subnet Solution -  Update Security List  Rules - Please note to open destination ports for  respective subnet where you created filesystem. These ports are opened to make sure our source oci instances can access ...

6 Protection Rules for securing your Bastion Host on OCI

  Today's post is fundamentally cover 6 aspects on securing your bastion hosts for any Cloud environment. Please note that use-case performed in the later stage of this post is focused on Oracle Cloud.  1. Ingress Rule OS Level - firewall to accept connections only from On-prem CPE Public IP. This will straight away reject connections to your Public subnet from outside network and help you channelize incoming connections.   2. Protocol and Ports 1. TCP/22 -- ssh connectivity 2. ICMP type 8 -- ping 3. Disable irrelevant user ids at OS You can get list of users from /etc/passwd file and users can be set to /sbin/nologin like as follows - demouser:x:1000:1000:demouser:/home/demouser:/sbin/nologin 4. Enabling 2-factor authentication for bastion server This has been explained in my earlier post - Implementing 2-factor authentication for Bastion server on OCI with Google Authenticator 5. Packages installed - Remove irrelevant packages. Keep bastion host as 'li...