2025-06-02 08:43:48,703 - INFO - Domain Default found not creating
2025-06-02 08:43:48,870 - INFO - Project ctest-TestBasicPolicy-15093908 not found, creating it
2025-06-02 08:43:49,336 - INFO - Created Project:ctest-TestBasicPolicy-15093908, ID : 6275cb7d-4efa-4f9f-8218-0240f5a2da17
2025-06-02 08:43:50,973 - INFO - ================================================================================
2025-06-02 08:43:50,973 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 08:43:50,973 - 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-06-02 08:43:51,234 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-06-02 08:43:51,234 - INFO - Initial checks done. Running the testcase now
2025-06-02 08:43:51,235 - INFO -
2025-06-02 08:43:51,828 - DEBUG - Response for create_network : {'network': {'id': '648a9e80-f677-4e7a-8189-9a847e52908d', 'name': 'ctest-vn-69202815', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'project_id': '6275cb7d4efa4f9f82180240f5a2da17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-vn-69202815'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 08:43:52,060 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6cabfaa-3163-4f60-8686-6609aac95d28', 'name': '', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'network_id': '648a9e80-f677-4e7a-8189-9a847e52908d', 'ip_version': 4, 'cidr': '25.72.179.64/26', 'allocation_pools': [{'start': '25.72.179.66', 'end': '25.72.179.126'}], 'gateway_ip': '25.72.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.72.179.66', 'tags': [], 'project_id': '6275cb7d4efa4f9f82180240f5a2da17'}}
2025-06-02 08:43:52,081 - INFO - Created VN ctest-vn-69202815
2025-06-02 08:43:52,136 - DEBUG - VN ctest-vn-69202815 UUID is 648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:52,473 - DEBUG - Response for create_network : {'network': {'id': 'cf07778a-337e-46d2-a771-800885562b6c', 'name': 'ctest-vn-52914246', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'project_id': '6275cb7d4efa4f9f82180240f5a2da17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-vn-52914246'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 08:43:52,682 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecaff607-8295-4315-9e19-72ef0803df3a', 'name': '', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'network_id': 'cf07778a-337e-46d2-a771-800885562b6c', 'ip_version': 4, 'cidr': '169.110.113.192/26', 'allocation_pools': [{'start': '169.110.113.194', 'end': '169.110.113.254'}], 'gateway_ip': '169.110.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.110.113.194', 'tags': [], 'project_id': '6275cb7d4efa4f9f82180240f5a2da17'}}
2025-06-02 08:43:52,704 - INFO - Created VN ctest-vn-52914246
2025-06-02 08:43:52,763 - DEBUG - VN ctest-vn-52914246 UUID is cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:52,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815, 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-15093908:ctest-vn-52914246, 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-06-02 08:43:53,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648a9e80-f677-4e7a-8189-9a847e52908d', 'name': 'ctest-vn-69202815', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'project_id': '6275cb7d4efa4f9f82180240f5a2da17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6cabfaa-3163-4f60-8686-6609aac95d28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-vn-69202815'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-policy-allow-all-28659738']], 'subnet_ipam': [{'subnet_cidr': '25.72.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 08:43:53,475 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf07778a-337e-46d2-a771-800885562b6c', 'name': 'ctest-vn-52914246', 'tenant_id': '6275cb7d4efa4f9f82180240f5a2da17', 'project_id': '6275cb7d4efa4f9f82180240f5a2da17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecaff607-8295-4315-9e19-72ef0803df3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-vn-52914246'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-policy-allow-all-28659738']], 'subnet_ipam': [{'subnet_cidr': '169.110.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 08:43:53,639 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-02 08:43:54,014 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-02 08:43:54,066 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2e521c81-119f-4738-8fbf-62e5716c5a53
2025-06-02 08:43:54,146 - DEBUG - Requesting: http://10.0.0.49:8082/project/6275cb7d-4efa-4f9f-8218-0240f5a2da17
2025-06-02 08:43:54,276 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,295 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,312 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8872b58e-f484-482d-a840-a686cf58a93e
2025-06-02 08:43:54,329 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8872b58e-f484-482d-a840-a686cf58a93e
2025-06-02 08:43:54,347 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/fc315eb5-f191-4bbe-a74f-d5421babeee1
2025-06-02 08:43:54,361 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 08:43:54,361 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,376 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8872b58e-f484-482d-a840-a686cf58a93e
2025-06-02 08:43:54,415 - INFO - Verified VN network id 9 for VN 648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,415 - INFO - Verifications in API Server for VN ctest-vn-69202815 passed
2025-06-02 08:43:54,415 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,436 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8872b58e-f484-482d-a840-a686cf58a93e
2025-06-02 08:43:54,445 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8872b58e-f484-482d-a840-a686cf58a93e
2025-06-02 08:43:54,461 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/fc315eb5-f191-4bbe-a74f-d5421babeee1
2025-06-02 08:43:54,480 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15093908', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7244777227306880634', 'uuid-lslong': '9334161596547764365'}, 'enable': 'true', 'created': '2025-06-02T08:43:51', 'last-modified': '2025-06-02T08:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.291904'}
2025-06-02 08:43:54,488 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 08:43:54,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69202815 passed
2025-06-02 08:43:54,489 - DEBUG - ====Verifying policy data for ctest-vn-69202815 in API_Server ======
2025-06-02 08:43:54,489 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-02 08:43:54,498 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2e521c81-119f-4738-8fbf-62e5716c5a53
2025-06-02 08:43:54,524 - DEBUG - Requesting: http://10.0.0.49:8082/project/6275cb7d-4efa-4f9f-8218-0240f5a2da17
2025-06-02 08:43:54,600 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/648a9e80-f677-4e7a-8189-9a847e52908d
2025-06-02 08:43:54,613 - DEBUG - ==>Verifying data for policy with id: 730f9722-e893-45a5-ab9b-a9772fbd3220, fqn: ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-policy-allow-all-28659738']
2025-06-02 08:43:54,613 - INFO - VN ctest-vn-69202815 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 08:43:54,613 - DEBUG - Verifying the vn in opserver
2025-06-02 08:43:54,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815 virtual network link through opserver 10.0.0.49
2025-06-02 08:43:54,613 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-02 08:43:54,952 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-02 08:43:55,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815?flat'}
2025-06-02 08:43:55,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-69202815 is found in opserver
2025-06-02 08:43:55,026 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 08:43:55,032 - DEBUG - VRF ids for VN ctest-vn-69202815: {}
2025-06-02 08:43:55,032 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-02 08:43:55,039 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2e521c81-119f-4738-8fbf-62e5716c5a53
2025-06-02 08:43:55,052 - DEBUG - Requesting: http://10.0.0.49:8082/project/6275cb7d-4efa-4f9f-8218-0240f5a2da17
2025-06-02 08:43:55,132 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,146 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,157 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eafcb2f2-9ea4-4ea0-8bd4-259b925c76f6
2025-06-02 08:43:55,166 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eafcb2f2-9ea4-4ea0-8bd4-259b925c76f6
2025-06-02 08:43:55,174 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e262a1a5-6650-4121-ad0b-cf4bdf5784c6
2025-06-02 08:43:55,182 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 08:43:55,182 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,193 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eafcb2f2-9ea4-4ea0-8bd4-259b925c76f6
2025-06-02 08:43:55,209 - INFO - Verified VN network id 10 for VN cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,209 - INFO - Verifications in API Server for VN ctest-vn-52914246 passed
2025-06-02 08:43:55,209 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,219 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eafcb2f2-9ea4-4ea0-8bd4-259b925c76f6
2025-06-02 08:43:55,227 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/eafcb2f2-9ea4-4ea0-8bd4-259b925c76f6
2025-06-02 08:43:55,234 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e262a1a5-6650-4121-ad0b-cf4bdf5784c6
2025-06-02 08:43:55,247 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-52914246', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15093908', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14918023726141163218', 'uuid-lslong': '12065565650787380076'}, 'enable': 'true', 'created': '2025-06-02T08:43:52', 'last-modified': '2025-06-02T08:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.797940'}
2025-06-02 08:43:55,254 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 08:43:55,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52914246 passed
2025-06-02 08:43:55,254 - DEBUG - ====Verifying policy data for ctest-vn-52914246 in API_Server ======
2025-06-02 08:43:55,254 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-02 08:43:55,260 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2e521c81-119f-4738-8fbf-62e5716c5a53
2025-06-02 08:43:55,272 - DEBUG - Requesting: http://10.0.0.49:8082/project/6275cb7d-4efa-4f9f-8218-0240f5a2da17
2025-06-02 08:43:55,351 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cf07778a-337e-46d2-a771-800885562b6c
2025-06-02 08:43:55,362 - DEBUG - ==>Verifying data for policy with id: 730f9722-e893-45a5-ab9b-a9772fbd3220, fqn: ['default-domain', 'ctest-TestBasicPolicy-15093908', 'ctest-policy-allow-all-28659738']
2025-06-02 08:43:55,362 - INFO - VN ctest-vn-52914246 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 08:43:55,362 - DEBUG - Verifying the vn in opserver
2025-06-02 08:43:55,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-52914246 virtual network link through opserver 10.0.0.49
2025-06-02 08:43:55,363 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-02 08:43:55,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-52914246', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-52914246?flat'}
2025-06-02 08:43:55,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15093908:ctest-vn-52914246 is found in opserver
2025-06-02 08:43:55,388 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 08:43:55,395 - DEBUG - VRF ids for VN ctest-vn-52914246: {}
2025-06-02 08:43:55,463 - DEBUG - Services list from nova: [