2025-08-12 14:11:33,629 - INFO - Domain Default found not creating
2025-08-12 14:11:33,745 - INFO - Project ctest-TestBasicPolicy-56031301 not found, creating it
2025-08-12 14:11:34,231 - INFO - Created Project:ctest-TestBasicPolicy-56031301, ID : 3ac1258c-c7db-4dd9-92b5-2cd9dd077fe2
2025-08-12 14:11:35,638 - INFO - ================================================================================
2025-08-12 14:11:35,638 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 14:11:35,638 - 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-08-12 14:11:35,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-12 14:11:35,891 - INFO - Initial checks done. Running the testcase now
2025-08-12 14:11:35,892 - INFO -
2025-08-12 14:11:36,434 - DEBUG - Response for create_network : {'network': {'id': '492ac33f-3ed1-4a26-8725-1afbf231628a', 'name': 'ctest-vn-82403724', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-vn-82403724'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:11:36,575 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc2a3748-9a67-49f1-9458-52e8ea8a9d10', 'name': '', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'network_id': '492ac33f-3ed1-4a26-8725-1afbf231628a', 'ip_version': 4, 'cidr': '104.253.197.0/26', 'allocation_pools': [{'start': '104.253.197.2', 'end': '104.253.197.62'}], 'gateway_ip': '104.253.197.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.253.197.2', 'tags': [], 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2'}}
2025-08-12 14:11:36,591 - INFO - Created VN ctest-vn-82403724
2025-08-12 14:11:36,643 - DEBUG - VN ctest-vn-82403724 UUID is 492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:36,954 - DEBUG - Response for create_network : {'network': {'id': 'b73fd579-4275-47a0-8966-e12559eaba0a', 'name': 'ctest-vn-66742890', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-vn-66742890'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:11:37,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '85647cdf-43d9-4e53-bbf2-c454f40641e2', 'name': '', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'network_id': 'b73fd579-4275-47a0-8966-e12559eaba0a', 'ip_version': 4, 'cidr': '42.53.84.128/26', 'allocation_pools': [{'start': '42.53.84.130', 'end': '42.53.84.190'}], 'gateway_ip': '42.53.84.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.53.84.130', 'tags': [], 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2'}}
2025-08-12 14:11:37,139 - INFO - Created VN ctest-vn-66742890
2025-08-12 14:11:37,191 - DEBUG - VN ctest-vn-66742890 UUID is b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:37,339 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724, 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-56031301:ctest-vn-66742890, 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-08-12 14:11:37,627 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '492ac33f-3ed1-4a26-8725-1afbf231628a', 'name': 'ctest-vn-82403724', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc2a3748-9a67-49f1-9458-52e8ea8a9d10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-vn-82403724'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-policy-allow-all-55660596']], 'subnet_ipam': [{'subnet_cidr': '104.253.197.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:11:37,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b73fd579-4275-47a0-8966-e12559eaba0a', 'name': 'ctest-vn-66742890', 'tenant_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'project_id': '3ac1258cc7db4dd992b52cd9dd077fe2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85647cdf-43d9-4e53-bbf2-c454f40641e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-vn-66742890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-policy-allow-all-55660596']], 'subnet_ipam': [{'subnet_cidr': '42.53.84.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 14:11:38,007 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 14:11:38,318 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 14:11:38,345 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235
2025-08-12 14:11:38,357 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ac1258c-c7db-4dd9-92b5-2cd9dd077fe2
2025-08-12 14:11:38,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,448 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7903e08-d02a-4415-8373-1414ca20a0f0
2025-08-12 14:11:38,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7903e08-d02a-4415-8373-1414ca20a0f0
2025-08-12 14:11:38,459 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/612ceab1-bc73-4f19-88b4-b3ba869ee424
2025-08-12 14:11:38,465 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 14:11:38,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,473 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7903e08-d02a-4415-8373-1414ca20a0f0
2025-08-12 14:11:38,485 - INFO - Verified VN network id 12 for VN 492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,485 - INFO - Verifications in API Server for VN ctest-vn-82403724 passed
2025-08-12 14:11:38,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7903e08-d02a-4415-8373-1414ca20a0f0
2025-08-12 14:11:38,499 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7903e08-d02a-4415-8373-1414ca20a0f0
2025-08-12 14:11:38,505 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/612ceab1-bc73-4f19-88b4-b3ba869ee424
2025-08-12 14:11:38,515 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56031301', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5272240990194846246', 'uuid-lslong': '9738219438661001866'}, 'enable': 'true', 'created': '2025-08-12T14:11:36', 'last-modified': '2025-08-12T14:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909552'}
2025-08-12 14:11:38,521 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 14:11:38,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82403724 passed
2025-08-12 14:11:38,521 - DEBUG - ====Verifying policy data for ctest-vn-82403724 in API_Server ======
2025-08-12 14:11:38,522 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 14:11:38,527 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235
2025-08-12 14:11:38,538 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ac1258c-c7db-4dd9-92b5-2cd9dd077fe2
2025-08-12 14:11:38,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/492ac33f-3ed1-4a26-8725-1afbf231628a
2025-08-12 14:11:38,617 - DEBUG - ==>Verifying data for policy with id: 3fdbee85-b4f2-4edb-8ada-3f4748387e9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-policy-allow-all-55660596']
2025-08-12 14:11:38,618 - INFO - VN ctest-vn-82403724 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 14:11:38,618 - DEBUG - Verifying the vn in opserver
2025-08-12 14:11:38,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724 virtual network link through opserver 10.0.0.254
2025-08-12 14:11:38,618 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 14:11:38,906 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 14:11:38,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724?flat'}
2025-08-12 14:11:38,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-82403724 is found in opserver
2025-08-12 14:11:38,967 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 14:11:38,971 - DEBUG - VRF ids for VN ctest-vn-82403724: {}
2025-08-12 14:11:38,971 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 14:11:38,977 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235
2025-08-12 14:11:38,987 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ac1258c-c7db-4dd9-92b5-2cd9dd077fe2
2025-08-12 14:11:39,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,069 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,079 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/481556e6-ca31-4304-861b-3f0ff608dde3
2025-08-12 14:11:39,085 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/481556e6-ca31-4304-861b-3f0ff608dde3
2025-08-12 14:11:39,091 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e3cae1ef-da22-44ce-8676-8a096beee74d
2025-08-12 14:11:39,097 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 14:11:39,097 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/481556e6-ca31-4304-861b-3f0ff608dde3
2025-08-12 14:11:39,118 - INFO - Verified VN network id 13 for VN b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,118 - INFO - Verifications in API Server for VN ctest-vn-66742890 passed
2025-08-12 14:11:39,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,127 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/481556e6-ca31-4304-861b-3f0ff608dde3
2025-08-12 14:11:39,134 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/481556e6-ca31-4304-861b-3f0ff608dde3
2025-08-12 14:11:39,142 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e3cae1ef-da22-44ce-8676-8a096beee74d
2025-08-12 14:11:39,157 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-66742890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56031301', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13204507349256325024', 'uuid-lslong': '9900848381359208970'}, 'enable': 'true', 'created': '2025-08-12T14:11:36', 'last-modified': '2025-08-12T14:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318795'}
2025-08-12 14:11:39,163 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 14:11:39,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66742890 passed
2025-08-12 14:11:39,163 - DEBUG - ====Verifying policy data for ctest-vn-66742890 in API_Server ======
2025-08-12 14:11:39,163 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 14:11:39,169 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235
2025-08-12 14:11:39,179 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ac1258c-c7db-4dd9-92b5-2cd9dd077fe2
2025-08-12 14:11:39,247 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b73fd579-4275-47a0-8966-e12559eaba0a
2025-08-12 14:11:39,256 - DEBUG - ==>Verifying data for policy with id: 3fdbee85-b4f2-4edb-8ada-3f4748387e9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56031301', 'ctest-policy-allow-all-55660596']
2025-08-12 14:11:39,256 - INFO - VN ctest-vn-66742890 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 14:11:39,256 - DEBUG - Verifying the vn in opserver
2025-08-12 14:11:39,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-66742890 virtual network link through opserver 10.0.0.254
2025-08-12 14:11:39,256 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 14:11:39,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-66742890', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-66742890?flat'}
2025-08-12 14:11:39,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56031301:ctest-vn-66742890 is found in opserver
2025-08-12 14:11:39,278 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 14:11:39,283 - DEBUG - VRF ids for VN ctest-vn-66742890: {}
2025-08-12 14:11:39,333 - DEBUG - Services list from nova: [