2025-05-07 14:14:45,292 - INFO - Domain Default found not creating
2025-05-07 14:14:45,424 - INFO - Project ctest-TestBasicPolicy-34252086 not found, creating it
2025-05-07 14:14:45,868 - INFO - Created Project:ctest-TestBasicPolicy-34252086, ID : e6151d1f-04a0-46f8-8ec3-2314ab18d4d4
2025-05-07 14:14:47,235 - INFO - ================================================================================
2025-05-07 14:14:47,235 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-07 14:14:47,235 - 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-05-07 14:14:47,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-05-07 14:14:47,486 - INFO - Initial checks done. Running the testcase now
2025-05-07 14:14:47,486 - INFO -
2025-05-07 14:14:48,014 - DEBUG - Response for create_network : {'network': {'id': '387a5cdb-f13b-446c-be23-471131a08d63', 'name': 'ctest-vn-54304803', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-vn-54304803'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 14:14:48,186 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e17e470-15ed-4f55-8926-d851fd4c3541', 'name': '', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'network_id': '387a5cdb-f13b-446c-be23-471131a08d63', 'ip_version': 4, 'cidr': '165.131.103.0/26', 'allocation_pools': [{'start': '165.131.103.2', 'end': '165.131.103.62'}], 'gateway_ip': '165.131.103.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.131.103.2', 'tags': [], 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4'}}
2025-05-07 14:14:48,203 - INFO - Created VN ctest-vn-54304803
2025-05-07 14:14:48,256 - DEBUG - VN ctest-vn-54304803 UUID is 387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:48,709 - DEBUG - Response for create_network : {'network': {'id': '7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072', 'name': 'ctest-vn-54752704', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-vn-54752704'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 14:14:48,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e4bb566-006f-49b3-99f7-cdba87ff11ec', 'name': '', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'network_id': '7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072', 'ip_version': 4, 'cidr': '8.207.31.0/26', 'allocation_pools': [{'start': '8.207.31.2', 'end': '8.207.31.62'}], 'gateway_ip': '8.207.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.207.31.2', 'tags': [], 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4'}}
2025-05-07 14:14:48,882 - INFO - Created VN ctest-vn-54752704
2025-05-07 14:14:48,940 - DEBUG - VN ctest-vn-54752704 UUID is 7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:49,051 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803, 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-34252086:ctest-vn-54752704, 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-05-07 14:14:49,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '387a5cdb-f13b-446c-be23-471131a08d63', 'name': 'ctest-vn-54304803', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e17e470-15ed-4f55-8926-d851fd4c3541'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-vn-54304803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-policy-allow-all-16905369']], 'subnet_ipam': [{'subnet_cidr': '165.131.103.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 14:14:49,616 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072', 'name': 'ctest-vn-54752704', 'tenant_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'project_id': 'e6151d1f04a046f88ec32314ab18d4d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e4bb566-006f-49b3-99f7-cdba87ff11ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-vn-54752704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-policy-allow-all-16905369']], 'subnet_ipam': [{'subnet_cidr': '8.207.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 14:14:49,768 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-07 14:14:50,063 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-07 14:14:50,091 - DEBUG - Requesting: http://10.0.0.49:8082/domain/29814dbe-7f9f-4319-8153-d1a0b648541b
2025-05-07 14:14:50,106 - DEBUG - Requesting: http://10.0.0.49:8082/project/e6151d1f-04a0-46f8-8ec3-2314ab18d4d4
2025-05-07 14:14:50,179 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,190 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,200 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/556197bb-b5e6-49e7-b769-006b19ed2057
2025-05-07 14:14:50,207 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/556197bb-b5e6-49e7-b769-006b19ed2057
2025-05-07 14:14:50,214 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/de8ace23-221f-4904-a947-a48028014025
2025-05-07 14:14:50,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 14:14:50,222 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,231 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/556197bb-b5e6-49e7-b769-006b19ed2057
2025-05-07 14:14:50,249 - INFO - Verified VN network id 8 for VN 387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,249 - INFO - Verifications in API Server for VN ctest-vn-54304803 passed
2025-05-07 14:14:50,249 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,258 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/556197bb-b5e6-49e7-b769-006b19ed2057
2025-05-07 14:14:50,266 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/556197bb-b5e6-49e7-b769-006b19ed2057
2025-05-07 14:14:50,272 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/de8ace23-221f-4904-a947-a48028014025
2025-05-07 14:14:50,284 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34252086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4069667312997450860', 'uuid-lslong': '13700872630563802467'}, 'enable': 'true', 'created': '2025-05-07T14:14:47', 'last-modified': '2025-05-07T14:14:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954394'}
2025-05-07 14:14:50,290 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 14:14:50,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54304803 passed
2025-05-07 14:14:50,291 - DEBUG - ====Verifying policy data for ctest-vn-54304803 in API_Server ======
2025-05-07 14:14:50,291 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-07 14:14:50,296 - DEBUG - Requesting: http://10.0.0.49:8082/domain/29814dbe-7f9f-4319-8153-d1a0b648541b
2025-05-07 14:14:50,308 - DEBUG - Requesting: http://10.0.0.49:8082/project/e6151d1f-04a0-46f8-8ec3-2314ab18d4d4
2025-05-07 14:14:50,380 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/387a5cdb-f13b-446c-be23-471131a08d63
2025-05-07 14:14:50,390 - DEBUG - ==>Verifying data for policy with id: 100534f8-e5a4-43c5-a7b6-a73c4afb1c62, fqn: ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-policy-allow-all-16905369']
2025-05-07 14:14:50,390 - INFO - VN ctest-vn-54304803 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 14:14:50,390 - DEBUG - Verifying the vn in opserver
2025-05-07 14:14:50,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803 virtual network link through opserver 10.0.0.49
2025-05-07 14:14:50,390 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-07 14:14:50,682 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-07 14:14:50,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803?flat'}
2025-05-07 14:14:50,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54304803 is found in opserver
2025-05-07 14:14:50,744 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 14:14:50,749 - DEBUG - VRF ids for VN ctest-vn-54304803: {}
2025-05-07 14:14:50,749 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-07 14:14:50,754 - DEBUG - Requesting: http://10.0.0.49:8082/domain/29814dbe-7f9f-4319-8153-d1a0b648541b
2025-05-07 14:14:50,768 - DEBUG - Requesting: http://10.0.0.49:8082/project/e6151d1f-04a0-46f8-8ec3-2314ab18d4d4
2025-05-07 14:14:50,844 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:50,857 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:50,867 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dbc2c380-1005-48b9-ade1-55b4ee570b1d
2025-05-07 14:14:50,874 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dbc2c380-1005-48b9-ade1-55b4ee570b1d
2025-05-07 14:14:50,880 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b910e1e9-aad6-43f1-ad47-95a9aedde526
2025-05-07 14:14:50,887 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 14:14:50,887 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:50,896 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dbc2c380-1005-48b9-ade1-55b4ee570b1d
2025-05-07 14:14:50,910 - INFO - Verified VN network id 9 for VN 7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:50,910 - INFO - Verifications in API Server for VN ctest-vn-54752704 passed
2025-05-07 14:14:50,911 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:50,920 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dbc2c380-1005-48b9-ade1-55b4ee570b1d
2025-05-07 14:14:50,927 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dbc2c380-1005-48b9-ade1-55b4ee570b1d
2025-05-07 14:14:50,933 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b910e1e9-aad6-43f1-ad47-95a9aedde526
2025-05-07 14:14:50,946 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54752704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34252086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8959629653550254700', 'uuid-lslong': '12522221987077918834'}, 'enable': 'true', 'created': '2025-05-07T14:14:48', 'last-modified': '2025-05-07T14:14:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389946'}
2025-05-07 14:14:50,952 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 14:14:50,952 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54752704 passed
2025-05-07 14:14:50,952 - DEBUG - ====Verifying policy data for ctest-vn-54752704 in API_Server ======
2025-05-07 14:14:50,952 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-07 14:14:50,958 - DEBUG - Requesting: http://10.0.0.49:8082/domain/29814dbe-7f9f-4319-8153-d1a0b648541b
2025-05-07 14:14:50,970 - DEBUG - Requesting: http://10.0.0.49:8082/project/e6151d1f-04a0-46f8-8ec3-2314ab18d4d4
2025-05-07 14:14:51,042 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7c56ffb3-22eb-4a6c-adc7-de8d3a5d9072
2025-05-07 14:14:51,054 - DEBUG - ==>Verifying data for policy with id: 100534f8-e5a4-43c5-a7b6-a73c4afb1c62, fqn: ['default-domain', 'ctest-TestBasicPolicy-34252086', 'ctest-policy-allow-all-16905369']
2025-05-07 14:14:51,054 - INFO - VN ctest-vn-54752704 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 14:14:51,054 - DEBUG - Verifying the vn in opserver
2025-05-07 14:14:51,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54752704 virtual network link through opserver 10.0.0.49
2025-05-07 14:14:51,054 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-07 14:14:51,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54752704', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54752704?flat'}
2025-05-07 14:14:51,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34252086:ctest-vn-54752704 is found in opserver
2025-05-07 14:14:51,080 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 14:14:51,086 - DEBUG - VRF ids for VN ctest-vn-54752704: {}
2025-05-07 14:14:51,139 - DEBUG - Services list from nova: [