2025-02-13 09:30:42,689 - INFO - Domain Default found not creating
2025-02-13 09:30:42,894 - INFO - Project ctest-TestBasicPolicy-36320185 not found, creating it
2025-02-13 09:30:43,439 - INFO - Created Project:ctest-TestBasicPolicy-36320185, ID : 56a6809c-4668-4d5a-bd47-20f998be5f46
2025-02-13 09:30:45,124 - INFO - ================================================================================
2025-02-13 09:30:45,124 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-13 09:30:45,124 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-02-13 09:30:45,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with
2025-02-13 09:30:45,398 - INFO - Initial checks done. Running the testcase now
2025-02-13 09:30:45,398 - INFO -
2025-02-13 09:30:46,040 - DEBUG - Response for create_network : {'network': {'id': '82d7c41b-d410-434e-8982-052cb8ce4c15', 'name': 'ctest-vn-90567339', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'project_id': '56a6809c46684d5abd4720f998be5f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-vn-90567339'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 09:30:46,218 - DEBUG - Response for create_subnet : {'subnet': {'id': '1103b1e4-5c65-47e7-8fd8-b4fd07f97be3', 'name': '', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'network_id': '82d7c41b-d410-434e-8982-052cb8ce4c15', 'ip_version': 4, 'cidr': '6.5.74.64/26', 'allocation_pools': [{'start': '6.5.74.66', 'end': '6.5.74.126'}], 'gateway_ip': '6.5.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.5.74.66', 'tags': [], 'project_id': '56a6809c46684d5abd4720f998be5f46'}}
2025-02-13 09:30:46,245 - INFO - Created VN ctest-vn-90567339
2025-02-13 09:30:46,303 - DEBUG - VN ctest-vn-90567339 UUID is 82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:46,660 - DEBUG - Response for create_network : {'network': {'id': '07869b67-387b-45a0-a8ba-a347a9cfd833', 'name': 'ctest-vn-14936689', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'project_id': '56a6809c46684d5abd4720f998be5f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-vn-14936689'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 09:30:46,860 - DEBUG - Response for create_subnet : {'subnet': {'id': '006d954a-3dfb-41dc-b56f-cd84867e8b58', 'name': '', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'network_id': '07869b67-387b-45a0-a8ba-a347a9cfd833', 'ip_version': 4, 'cidr': '42.186.231.192/26', 'allocation_pools': [{'start': '42.186.231.194', 'end': '42.186.231.254'}], 'gateway_ip': '42.186.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.186.231.194', 'tags': [], 'project_id': '56a6809c46684d5abd4720f998be5f46'}}
2025-02-13 09:30:46,887 - INFO - Created VN ctest-vn-14936689
2025-02-13 09:30:46,943 - DEBUG - VN ctest-vn-14936689 UUID is 07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:47,090 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-02-13 09:30:47,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82d7c41b-d410-434e-8982-052cb8ce4c15', 'name': 'ctest-vn-90567339', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'project_id': '56a6809c46684d5abd4720f998be5f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1103b1e4-5c65-47e7-8fd8-b4fd07f97be3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-vn-90567339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-policy-allow-all-19627105']], 'subnet_ipam': [{'subnet_cidr': '6.5.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 09:30:47,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07869b67-387b-45a0-a8ba-a347a9cfd833', 'name': 'ctest-vn-14936689', 'tenant_id': '56a6809c46684d5abd4720f998be5f46', 'project_id': '56a6809c46684d5abd4720f998be5f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['006d954a-3dfb-41dc-b56f-cd84867e8b58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-vn-14936689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-policy-allow-all-19627105']], 'subnet_ipam': [{'subnet_cidr': '42.186.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 09:30:47,903 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-13 09:30:48,212 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-13 09:30:48,249 - DEBUG - Requesting: http://10.0.0.30:8082/domain/eb7f12df-de39-4442-be66-1d482e66602e
2025-02-13 09:30:48,271 - DEBUG - Requesting: http://10.0.0.30:8082/project/56a6809c-4668-4d5a-bd47-20f998be5f46
2025-02-13 09:30:48,364 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,384 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,399 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/73a3bb76-4407-4d4b-b230-e7a19d692f80
2025-02-13 09:30:48,413 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/73a3bb76-4407-4d4b-b230-e7a19d692f80
2025-02-13 09:30:48,463 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/0142b64f-5772-4fa7-af8c-1dd5bac53138
2025-02-13 09:30:48,475 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 09:30:48,475 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,490 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/73a3bb76-4407-4d4b-b230-e7a19d692f80
2025-02-13 09:30:48,511 - INFO - Verified VN network id 8 for VN 82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,512 - INFO - Verifications in API Server for VN ctest-vn-90567339 passed
2025-02-13 09:30:48,512 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,529 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/73a3bb76-4407-4d4b-b230-e7a19d692f80
2025-02-13 09:30:48,540 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/73a3bb76-4407-4d4b-b230-e7a19d692f80
2025-02-13 09:30:48,551 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/0142b64f-5772-4fa7-af8c-1dd5bac53138
2025-02-13 09:30:48,568 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36320185', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9428219968724419406', 'uuid-lslong': '9908487819805740053'}, 'enable': 'true', 'created': '2025-02-13T09:30:46', 'last-modified': '2025-02-13T09:30:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.163572'}
2025-02-13 09:30:48,576 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 09:30:48,576 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90567339 passed
2025-02-13 09:30:48,577 - DEBUG - ====Verifying policy data for ctest-vn-90567339 in API_Server ======
2025-02-13 09:30:48,577 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-13 09:30:48,585 - DEBUG - Requesting: http://10.0.0.30:8082/domain/eb7f12df-de39-4442-be66-1d482e66602e
2025-02-13 09:30:48,610 - DEBUG - Requesting: http://10.0.0.30:8082/project/56a6809c-4668-4d5a-bd47-20f998be5f46
2025-02-13 09:30:48,692 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/82d7c41b-d410-434e-8982-052cb8ce4c15
2025-02-13 09:30:48,706 - DEBUG - ==>Verifying data for policy with id: 04e87c3f-9ea3-4c2b-8896-3f052ffac069, fqn: ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-policy-allow-all-19627105']
2025-02-13 09:30:48,706 - INFO - VN ctest-vn-90567339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 09:30:48,706 - DEBUG - Verifying the vn in opserver
2025-02-13 09:30:48,706 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339 virtual network link through opserver 10.0.0.30
2025-02-13 09:30:48,706 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-13 09:30:49,025 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-13 09:30:49,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339?flat'}
2025-02-13 09:30:49,116 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-90567339 is found in opserver
2025-02-13 09:30:49,133 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 09:30:49,144 - DEBUG - VRF ids for VN ctest-vn-90567339: {}
2025-02-13 09:30:49,144 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-13 09:30:49,152 - DEBUG - Requesting: http://10.0.0.30:8082/domain/eb7f12df-de39-4442-be66-1d482e66602e
2025-02-13 09:30:49,170 - DEBUG - Requesting: http://10.0.0.30:8082/project/56a6809c-4668-4d5a-bd47-20f998be5f46
2025-02-13 09:30:49,260 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,278 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,294 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/722849e2-cd4a-4059-b1eb-8b44003945be
2025-02-13 09:30:49,306 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/722849e2-cd4a-4059-b1eb-8b44003945be
2025-02-13 09:30:49,317 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/15115fca-974b-486b-9a27-5505ca8b08f6
2025-02-13 09:30:49,328 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 09:30:49,328 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,346 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/722849e2-cd4a-4059-b1eb-8b44003945be
2025-02-13 09:30:49,370 - INFO - Verified VN network id 9 for VN 07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,370 - INFO - Verifications in API Server for VN ctest-vn-14936689 passed
2025-02-13 09:30:49,370 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,384 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/722849e2-cd4a-4059-b1eb-8b44003945be
2025-02-13 09:30:49,397 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/722849e2-cd4a-4059-b1eb-8b44003945be
2025-02-13 09:30:49,409 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/15115fca-974b-486b-9a27-5505ca8b08f6
2025-02-13 09:30:49,426 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36320185', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '542291672776263072', 'uuid-lslong': '12158209672227051571'}, 'enable': 'true', 'created': '2025-02-13T09:30:46', 'last-modified': '2025-02-13T09:30:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.743283'}
2025-02-13 09:30:49,437 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 09:30:49,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14936689 passed
2025-02-13 09:30:49,437 - DEBUG - ====Verifying policy data for ctest-vn-14936689 in API_Server ======
2025-02-13 09:30:49,437 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-13 09:30:49,446 - DEBUG - Requesting: http://10.0.0.30:8082/domain/eb7f12df-de39-4442-be66-1d482e66602e
2025-02-13 09:30:49,462 - DEBUG - Requesting: http://10.0.0.30:8082/project/56a6809c-4668-4d5a-bd47-20f998be5f46
2025-02-13 09:30:49,545 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/07869b67-387b-45a0-a8ba-a347a9cfd833
2025-02-13 09:30:49,558 - DEBUG - ==>Verifying data for policy with id: 04e87c3f-9ea3-4c2b-8896-3f052ffac069, fqn: ['default-domain', 'ctest-TestBasicPolicy-36320185', 'ctest-policy-allow-all-19627105']
2025-02-13 09:30:49,558 - INFO - VN ctest-vn-14936689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 09:30:49,558 - DEBUG - Verifying the vn in opserver
2025-02-13 09:30:49,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689 virtual network link through opserver 10.0.0.30
2025-02-13 09:30:49,558 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-13 09:30:49,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689?flat'}
2025-02-13 09:30:49,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36320185:ctest-vn-14936689 is found in opserver
2025-02-13 09:30:49,589 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 09:30:49,596 - DEBUG - VRF ids for VN ctest-vn-14936689: {}
2025-02-13 09:30:49,683 - DEBUG - Services list from nova: [