2025-04-28 02:04:47,584 - INFO - Domain Default found not creating
2025-04-28 02:04:47,718 - INFO - Project ctest-TestBasicPolicy-92972317 not found, creating it
2025-04-28 02:04:48,187 - INFO - Created Project:ctest-TestBasicPolicy-92972317, ID : bb144ea8-297d-4eae-9eb8-80f7a0b6e778
2025-04-28 02:04:49,620 - INFO - ================================================================================
2025-04-28 02:04:49,620 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 02:04:49,620 - 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-28 02:04:49,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-04-28 02:04:49,877 - INFO - Initial checks done. Running the testcase now
2025-04-28 02:04:49,877 - INFO -
2025-04-28 02:04:50,442 - DEBUG - Response for create_network : {'network': {'id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'name': 'ctest-vn-48857609', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-48857609'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:04:50,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '96eca6c4-7951-4264-a81f-55bfd3831227', 'name': '', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'network_id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'ip_version': 4, 'cidr': '214.60.144.192/26', 'allocation_pools': [{'start': '214.60.144.194', 'end': '214.60.144.254'}], 'gateway_ip': '214.60.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.60.144.194', 'tags': [], 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778'}}
2025-04-28 02:04:50,653 - INFO - Created VN ctest-vn-48857609
2025-04-28 02:04:50,703 - DEBUG - VN ctest-vn-48857609 UUID is 41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:51,043 - DEBUG - Response for create_network : {'network': {'id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'name': 'ctest-vn-46206044', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-46206044'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:04:51,254 - DEBUG - Response for create_subnet : {'subnet': {'id': '85709e5a-3c9e-497e-afff-af2b2929cfad', 'name': '', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'network_id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'ip_version': 4, 'cidr': '36.224.223.192/26', 'allocation_pools': [{'start': '36.224.223.194', 'end': '36.224.223.254'}], 'gateway_ip': '36.224.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.224.223.194', 'tags': [], 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778'}}
2025-04-28 02:04:51,273 - INFO - Created VN ctest-vn-46206044
2025-04-28 02:04:51,323 - DEBUG - VN ctest-vn-46206044 UUID is 94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:51,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609, 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-92972317:ctest-vn-46206044, 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-28 02:04:51,741 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'name': 'ctest-vn-48857609', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96eca6c4-7951-4264-a81f-55bfd3831227'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-48857609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']], 'subnet_ipam': [{'subnet_cidr': '214.60.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:04:51,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'name': 'ctest-vn-46206044', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85709e5a-3c9e-497e-afff-af2b2929cfad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-46206044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']], 'subnet_ipam': [{'subnet_cidr': '36.224.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:04:52,139 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 02:04:52,435 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 02:04:52,471 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608
2025-04-28 02:04:52,486 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778
2025-04-28 02:04:52,570 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,590 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64
2025-04-28 02:04:52,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64
2025-04-28 02:04:52,603 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/318c5192-a2c7-4d94-9154-0035a660fec9
2025-04-28 02:04:52,608 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:04:52,608 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64
2025-04-28 02:04:52,630 - INFO - Verified VN network id 8 for VN 41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,630 - INFO - Verifications in API Server for VN ctest-vn-48857609 passed
2025-04-28 02:04:52,630 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,639 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64
2025-04-28 02:04:52,644 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64
2025-04-28 02:04:52,650 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/318c5192-a2c7-4d94-9154-0035a660fec9
2025-04-28 02:04:52,661 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92972317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4739626945814024014', 'uuid-lslong': '11594062233575815545'}, 'enable': 'true', 'created': '2025-04-28T02:04:50', 'last-modified': '2025-04-28T02:04:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940455'}
2025-04-28 02:04:52,667 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:04:52,667 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48857609 passed
2025-04-28 02:04:52,668 - DEBUG - ====Verifying policy data for ctest-vn-48857609 in API_Server ======
2025-04-28 02:04:52,668 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 02:04:52,672 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608
2025-04-28 02:04:52,682 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778
2025-04-28 02:04:52,754 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979
2025-04-28 02:04:52,764 - DEBUG - ==>Verifying data for policy with id: 67d2caa0-bc64-462b-ac6e-d6e9fde38f11, fqn: ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']
2025-04-28 02:04:52,764 - INFO - VN ctest-vn-48857609 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:04:52,764 - DEBUG - Verifying the vn in opserver
2025-04-28 02:04:52,764 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609 virtual network link through opserver 10.0.0.254
2025-04-28 02:04:52,764 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 02:04:53,052 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 02:04:53,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609?flat'}
2025-04-28 02:04:53,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609 is found in opserver
2025-04-28 02:04:53,115 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:04:53,120 - DEBUG - VRF ids for VN ctest-vn-48857609: {}
2025-04-28 02:04:53,120 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 02:04:53,126 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608
2025-04-28 02:04:53,137 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778
2025-04-28 02:04:53,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e
2025-04-28 02:04:53,238 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e
2025-04-28 02:04:53,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a3e1bc8e-f718-4b5d-b009-1e18b4699a25
2025-04-28 02:04:53,250 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:04:53,250 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,258 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e
2025-04-28 02:04:53,271 - INFO - Verified VN network id 9 for VN 94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,271 - INFO - Verifications in API Server for VN ctest-vn-46206044 passed
2025-04-28 02:04:53,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,279 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e
2025-04-28 02:04:53,285 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e
2025-04-28 02:04:53,291 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a3e1bc8e-f718-4b5d-b009-1e18b4699a25
2025-04-28 02:04:53,302 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92972317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10674170241029850585', 'uuid-lslong': '9566677892056478463'}, 'enable': 'true', 'created': '2025-04-28T02:04:50', 'last-modified': '2025-04-28T02:04:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356593'}
2025-04-28 02:04:53,308 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:04:53,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46206044 passed
2025-04-28 02:04:53,308 - DEBUG - ====Verifying policy data for ctest-vn-46206044 in API_Server ======
2025-04-28 02:04:53,308 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 02:04:53,313 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608
2025-04-28 02:04:53,324 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778
2025-04-28 02:04:53,392 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff
2025-04-28 02:04:53,405 - DEBUG - ==>Verifying data for policy with id: 67d2caa0-bc64-462b-ac6e-d6e9fde38f11, fqn: ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']
2025-04-28 02:04:53,405 - INFO - VN ctest-vn-46206044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:04:53,406 - DEBUG - Verifying the vn in opserver
2025-04-28 02:04:53,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044 virtual network link through opserver 10.0.0.254
2025-04-28 02:04:53,406 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 02:04:53,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044?flat'}
2025-04-28 02:04:53,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044 is found in opserver
2025-04-28 02:04:53,431 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:04:53,436 - DEBUG - VRF ids for VN ctest-vn-46206044: {}
2025-04-28 02:04:53,492 - DEBUG - Services list from nova: [