2025-04-09 15:57:31,934 - INFO - Domain Default found not creating
2025-04-09 15:57:32,334 - INFO - Project ctest-TestBasicPolicy-77425648 not found, creating it
2025-04-09 15:57:33,066 - INFO - Created Project:ctest-TestBasicPolicy-77425648, ID : cc774da1-29bb-4877-8b3a-ec798983088c
2025-04-09 15:57:35,332 - INFO - ================================================================================
2025-04-09 15:57:35,332 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 15:57:35,332 - 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-04-09 15:57:35,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-09 15:57:35,674 - INFO - Initial checks done. Running the testcase now
2025-04-09 15:57:35,674 - INFO -
2025-04-09 15:57:36,481 - DEBUG - Response for create_network : {'network': {'id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'name': 'ctest-vn-10307346', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-10307346'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:57:36,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fb39982-a7b3-45af-b92d-67a2a42a9b44', 'name': '', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'network_id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'ip_version': 4, 'cidr': '171.224.209.0/26', 'allocation_pools': [{'start': '171.224.209.2', 'end': '171.224.209.62'}], 'gateway_ip': '171.224.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.224.209.2', 'tags': [], 'project_id': 'cc774da129bb48778b3aec798983088c'}}
2025-04-09 15:57:36,765 - INFO - Created VN ctest-vn-10307346
2025-04-09 15:57:36,826 - DEBUG - VN ctest-vn-10307346 UUID is 469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:37,189 - DEBUG - Response for create_network : {'network': {'id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'name': 'ctest-vn-82098530', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-82098530'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:57:37,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a82e8c58-4880-47ab-a946-aa9dd3784a78', 'name': '', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'network_id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'ip_version': 4, 'cidr': '213.174.222.128/26', 'allocation_pools': [{'start': '213.174.222.130', 'end': '213.174.222.190'}], 'gateway_ip': '213.174.222.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.174.222.130', 'tags': [], 'project_id': 'cc774da129bb48778b3aec798983088c'}}
2025-04-09 15:57:37,506 - INFO - Created VN ctest-vn-82098530
2025-04-09 15:57:37,578 - DEBUG - VN ctest-vn-82098530 UUID is e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:37,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346, 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-77425648:ctest-vn-82098530, 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-04-09 15:57:38,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'name': 'ctest-vn-10307346', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fb39982-a7b3-45af-b92d-67a2a42a9b44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-10307346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']], 'subnet_ipam': [{'subnet_cidr': '171.224.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:57:38,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'name': 'ctest-vn-82098530', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a82e8c58-4880-47ab-a946-aa9dd3784a78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-82098530'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']], 'subnet_ipam': [{'subnet_cidr': '213.174.222.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:57:38,726 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 15:57:39,056 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 15:57:39,113 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20
2025-04-09 15:57:39,144 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c
2025-04-09 15:57:39,273 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,323 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f
2025-04-09 15:57:39,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f
2025-04-09 15:57:39,344 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7dda84e-dd56-4275-8386-554e760b86a3
2025-04-09 15:57:39,357 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 15:57:39,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f
2025-04-09 15:57:39,404 - INFO - Verified VN network id 8 for VN 469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,404 - INFO - Verifications in API Server for VN ctest-vn-10307346 passed
2025-04-09 15:57:39,404 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,424 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f
2025-04-09 15:57:39,438 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f
2025-04-09 15:57:39,452 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7dda84e-dd56-4275-8386-554e760b86a3
2025-04-09 15:57:39,475 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77425648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5086376757943158766', 'uuid-lslong': '9638440638974315060'}, 'enable': 'true', 'created': '2025-04-09T15:57:36', 'last-modified': '2025-04-09T15:57:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338810'}
2025-04-09 15:57:39,489 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 15:57:39,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10307346 passed
2025-04-09 15:57:39,490 - DEBUG - ====Verifying policy data for ctest-vn-10307346 in API_Server ======
2025-04-09 15:57:39,490 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 15:57:39,500 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20
2025-04-09 15:57:39,522 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c
2025-04-09 15:57:39,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34
2025-04-09 15:57:39,660 - DEBUG - ==>Verifying data for policy with id: 51a77b6d-bb55-4f3d-9a56-f76af1008636, fqn: ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']
2025-04-09 15:57:39,661 - INFO - VN ctest-vn-10307346 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 15:57:39,661 - DEBUG - Verifying the vn in opserver
2025-04-09 15:57:39,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346 virtual network link through opserver 10.0.0.254
2025-04-09 15:57:39,662 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 15:57:39,986 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 15:57:40,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346?flat'}
2025-04-09 15:57:40,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346 is found in opserver
2025-04-09 15:57:40,120 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 15:57:40,138 - DEBUG - VRF ids for VN ctest-vn-10307346: {}
2025-04-09 15:57:40,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 15:57:40,152 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20
2025-04-09 15:57:40,190 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c
2025-04-09 15:57:40,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57
2025-04-09 15:57:40,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57
2025-04-09 15:57:40,417 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a643f3b-1768-4010-94c7-784efbec4197
2025-04-09 15:57:40,434 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 15:57:40,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,465 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57
2025-04-09 15:57:40,501 - INFO - Verified VN network id 9 for VN e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,501 - INFO - Verifications in API Server for VN ctest-vn-82098530 passed
2025-04-09 15:57:40,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,527 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57
2025-04-09 15:57:40,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57
2025-04-09 15:57:40,559 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a643f3b-1768-4010-94c7-784efbec4197
2025-04-09 15:57:40,586 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77425648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16722908634668418432', 'uuid-lslong': '9695717103962726098'}, 'enable': 'true', 'created': '2025-04-09T15:57:37', 'last-modified': '2025-04-09T15:57:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.103518'}
2025-04-09 15:57:40,606 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 15:57:40,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82098530 passed
2025-04-09 15:57:40,607 - DEBUG - ====Verifying policy data for ctest-vn-82098530 in API_Server ======
2025-04-09 15:57:40,607 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 15:57:40,615 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20
2025-04-09 15:57:40,635 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c
2025-04-09 15:57:40,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2
2025-04-09 15:57:40,788 - DEBUG - ==>Verifying data for policy with id: 51a77b6d-bb55-4f3d-9a56-f76af1008636, fqn: ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']
2025-04-09 15:57:40,788 - INFO - VN ctest-vn-82098530 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 15:57:40,789 - DEBUG - Verifying the vn in opserver
2025-04-09 15:57:40,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530 virtual network link through opserver 10.0.0.254
2025-04-09 15:57:40,789 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 15:57:40,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530?flat'}
2025-04-09 15:57:40,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530 is found in opserver
2025-04-09 15:57:40,862 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 15:57:40,883 - DEBUG - VRF ids for VN ctest-vn-82098530: {}
2025-04-09 15:57:41,053 - DEBUG - Services list from nova: [