2025-02-10 02:26:28,166 - INFO - Domain Default found not creating
2025-02-10 02:26:28,320 - INFO - Project ctest-TestBasicPolicy-97454212 not found, creating it
2025-02-10 02:26:28,823 - INFO - Created Project:ctest-TestBasicPolicy-97454212, ID : 7c420765-5c8d-4ccd-a606-c3f9f12abc9a
2025-02-10 02:26:30,464 - INFO - ================================================================================
2025-02-10 02:26:30,464 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 02:26:30,464 - 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-10 02:26:30,730 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.0.0.36': '0'}} with
2025-02-10 02:26:30,730 - INFO - Initial checks done. Running the testcase now
2025-02-10 02:26:30,730 - INFO -
2025-02-10 02:26:31,351 - DEBUG - Response for create_network : {'network': {'id': '32b91736-3a0a-4cfc-b90f-a13ede77548a', 'name': 'ctest-vn-07007357', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-vn-07007357'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:31,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bdc0e38-6449-463d-8fa7-92536b3cdc35', 'name': '', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'network_id': '32b91736-3a0a-4cfc-b90f-a13ede77548a', 'ip_version': 4, 'cidr': '18.243.197.192/26', 'allocation_pools': [{'start': '18.243.197.194', 'end': '18.243.197.254'}], 'gateway_ip': '18.243.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.243.197.194', 'tags': [], 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a'}}
2025-02-10 02:26:31,540 - INFO - Created VN ctest-vn-07007357
2025-02-10 02:26:31,591 - DEBUG - VN ctest-vn-07007357 UUID is 32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:31,885 - DEBUG - Response for create_network : {'network': {'id': '4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b', 'name': 'ctest-vn-16344497', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-vn-16344497'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:32,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '29d135c5-fa00-44e2-b588-e4174f68f257', 'name': '', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'network_id': '4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b', 'ip_version': 4, 'cidr': '185.123.72.192/26', 'allocation_pools': [{'start': '185.123.72.194', 'end': '185.123.72.254'}], 'gateway_ip': '185.123.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.123.72.194', 'tags': [], 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a'}}
2025-02-10 02:26:32,139 - INFO - Created VN ctest-vn-16344497
2025-02-10 02:26:32,195 - DEBUG - VN ctest-vn-16344497 UUID is 4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:32,319 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357, 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-97454212:ctest-vn-16344497, 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-10 02:26:32,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32b91736-3a0a-4cfc-b90f-a13ede77548a', 'name': 'ctest-vn-07007357', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bdc0e38-6449-463d-8fa7-92536b3cdc35'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-vn-07007357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-policy-allow-all-48938278']], 'subnet_ipam': [{'subnet_cidr': '18.243.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:32,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b', 'name': 'ctest-vn-16344497', 'tenant_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'project_id': '7c4207655c8d4ccda606c3f9f12abc9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29d135c5-fa00-44e2-b588-e4174f68f257'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-vn-16344497'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-policy-allow-all-48938278']], 'subnet_ipam': [{'subnet_cidr': '185.123.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:26:33,091 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-10 02:26:33,439 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-10 02:26:33,472 - DEBUG - Requesting: http://10.0.0.36:8082/domain/77883bac-58e5-4a12-9065-4e365e19ca29
2025-02-10 02:26:33,486 - DEBUG - Requesting: http://10.0.0.36:8082/project/7c420765-5c8d-4ccd-a606-c3f9f12abc9a
2025-02-10 02:26:33,561 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,574 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,584 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bc43124f-b5cb-49f3-a5b9-2968b74b09ae
2025-02-10 02:26:33,592 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bc43124f-b5cb-49f3-a5b9-2968b74b09ae
2025-02-10 02:26:33,600 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/067b111d-0873-4971-93b4-a0d4d1aac4a6
2025-02-10 02:26:33,606 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 02:26:33,607 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,616 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bc43124f-b5cb-49f3-a5b9-2968b74b09ae
2025-02-10 02:26:33,632 - INFO - Verified VN network id 8 for VN 32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,632 - INFO - Verifications in API Server for VN ctest-vn-07007357 passed
2025-02-10 02:26:33,632 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,642 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bc43124f-b5cb-49f3-a5b9-2968b74b09ae
2025-02-10 02:26:33,649 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bc43124f-b5cb-49f3-a5b9-2968b74b09ae
2025-02-10 02:26:33,656 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/067b111d-0873-4971-93b4-a0d4d1aac4a6
2025-02-10 02:26:33,670 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97454212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3654978094257294588', 'uuid-lslong': '13335054313059734666'}, 'enable': 'true', 'created': '2025-02-10T02:26:31', 'last-modified': '2025-02-10T02:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062981'}
2025-02-10 02:26:33,679 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 02:26:33,679 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07007357 passed
2025-02-10 02:26:33,679 - DEBUG - ====Verifying policy data for ctest-vn-07007357 in API_Server ======
2025-02-10 02:26:33,679 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-10 02:26:33,688 - DEBUG - Requesting: http://10.0.0.36:8082/domain/77883bac-58e5-4a12-9065-4e365e19ca29
2025-02-10 02:26:33,702 - DEBUG - Requesting: http://10.0.0.36:8082/project/7c420765-5c8d-4ccd-a606-c3f9f12abc9a
2025-02-10 02:26:33,775 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/32b91736-3a0a-4cfc-b90f-a13ede77548a
2025-02-10 02:26:33,787 - DEBUG - ==>Verifying data for policy with id: 1ddbe67b-7d00-4387-9602-04ee03a159bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-policy-allow-all-48938278']
2025-02-10 02:26:33,787 - INFO - VN ctest-vn-07007357 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:26:33,787 - DEBUG - Verifying the vn in opserver
2025-02-10 02:26:33,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357 virtual network link through opserver 10.0.0.36
2025-02-10 02:26:33,788 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-10 02:26:34,121 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-10 02:26:34,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357?flat'}
2025-02-10 02:26:34,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-07007357 is found in opserver
2025-02-10 02:26:34,191 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:26:34,197 - DEBUG - VRF ids for VN ctest-vn-07007357: {}
2025-02-10 02:26:34,197 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-10 02:26:34,204 - DEBUG - Requesting: http://10.0.0.36:8082/domain/77883bac-58e5-4a12-9065-4e365e19ca29
2025-02-10 02:26:34,218 - DEBUG - Requesting: http://10.0.0.36:8082/project/7c420765-5c8d-4ccd-a606-c3f9f12abc9a
2025-02-10 02:26:34,296 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,310 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,321 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/baeb1907-03d1-4ef8-8dab-747076be9005
2025-02-10 02:26:34,329 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/baeb1907-03d1-4ef8-8dab-747076be9005
2025-02-10 02:26:34,337 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/aa583fae-2b67-4fcc-8cf1-3a06668a5c01
2025-02-10 02:26:34,344 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:26:34,344 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,354 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/baeb1907-03d1-4ef8-8dab-747076be9005
2025-02-10 02:26:34,369 - INFO - Verified VN network id 9 for VN 4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,369 - INFO - Verifications in API Server for VN ctest-vn-16344497 passed
2025-02-10 02:26:34,370 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,381 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/baeb1907-03d1-4ef8-8dab-747076be9005
2025-02-10 02:26:34,388 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/baeb1907-03d1-4ef8-8dab-747076be9005
2025-02-10 02:26:34,396 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/aa583fae-2b67-4fcc-8cf1-3a06668a5c01
2025-02-10 02:26:34,410 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-16344497', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97454212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5641811686137613779', 'uuid-lslong': '12970926101328781067'}, 'enable': 'true', 'created': '2025-02-10T02:26:31', 'last-modified': '2025-02-10T02:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547373'}
2025-02-10 02:26:34,419 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:26:34,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16344497 passed
2025-02-10 02:26:34,420 - DEBUG - ====Verifying policy data for ctest-vn-16344497 in API_Server ======
2025-02-10 02:26:34,420 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-10 02:26:34,427 - DEBUG - Requesting: http://10.0.0.36:8082/domain/77883bac-58e5-4a12-9065-4e365e19ca29
2025-02-10 02:26:34,440 - DEBUG - Requesting: http://10.0.0.36:8082/project/7c420765-5c8d-4ccd-a606-c3f9f12abc9a
2025-02-10 02:26:34,520 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4e4bbdd6-41e1-4dd3-b401-fc90f58b5f0b
2025-02-10 02:26:34,530 - DEBUG - ==>Verifying data for policy with id: 1ddbe67b-7d00-4387-9602-04ee03a159bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-97454212', 'ctest-policy-allow-all-48938278']
2025-02-10 02:26:34,530 - INFO - VN ctest-vn-16344497 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:26:34,530 - DEBUG - Verifying the vn in opserver
2025-02-10 02:26:34,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-16344497 virtual network link through opserver 10.0.0.36
2025-02-10 02:26:34,531 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-10 02:26:34,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-16344497', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-16344497?flat'}
2025-02-10 02:26:34,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97454212:ctest-vn-16344497 is found in opserver
2025-02-10 02:26:34,553 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:26:34,558 - DEBUG - VRF ids for VN ctest-vn-16344497: {}
2025-02-10 02:26:34,620 - DEBUG - Services list from nova: [