2025-01-09 07:34:21,865 - INFO - Domain Default found not creating
2025-01-09 07:34:22,030 - INFO - Project ctest-TestBasicPolicy-54266114 not found, creating it
2025-01-09 07:34:22,368 - INFO - Created Project:ctest-TestBasicPolicy-54266114, ID : 42bf6b0a-fca2-429c-a65d-3aefdad45875
2025-01-09 07:34:23,864 - INFO - ================================================================================
2025-01-09 07:34:23,864 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 07:34:23,864 - 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-01-09 07:34:24,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.31': '0'}} with
2025-01-09 07:34:24,126 - INFO - Initial checks done. Running the testcase now
2025-01-09 07:34:24,126 - INFO -
2025-01-09 07:34:24,666 - DEBUG - Response for create_network : {'network': {'id': 'a7c69592-65fa-4e4f-9653-4650a73e0cfd', 'name': 'ctest-vn-18409305', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'project_id': '42bf6b0afca2429ca65d3aefdad45875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-vn-18409305'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:34:24,868 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eeef87a8-10e4-407a-8f9f-c2efee009301', 'name': '', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'network_id': 'a7c69592-65fa-4e4f-9653-4650a73e0cfd', 'ip_version': 4, 'cidr': '62.64.75.192/26', 'allocation_pools': [{'start': '62.64.75.194', 'end': '62.64.75.254'}], 'gateway_ip': '62.64.75.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.64.75.194', 'tags': [], 'project_id': '42bf6b0afca2429ca65d3aefdad45875'}}
2025-01-09 07:34:24,889 - INFO - Created VN ctest-vn-18409305
2025-01-09 07:34:24,903 - DEBUG - VN ctest-vn-18409305 UUID is a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:25,310 - DEBUG - Response for create_network : {'network': {'id': 'a550a3b8-100b-4912-aa64-df1b4450a23c', 'name': 'ctest-vn-80810225', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'project_id': '42bf6b0afca2429ca65d3aefdad45875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-vn-80810225'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:34:25,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '88b075e4-b36b-40cc-b0dd-d17aa54c1a9a', 'name': '', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'network_id': 'a550a3b8-100b-4912-aa64-df1b4450a23c', 'ip_version': 4, 'cidr': '83.3.133.192/26', 'allocation_pools': [{'start': '83.3.133.194', 'end': '83.3.133.254'}], 'gateway_ip': '83.3.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.3.133.194', 'tags': [], 'project_id': '42bf6b0afca2429ca65d3aefdad45875'}}
2025-01-09 07:34:25,562 - INFO - Created VN ctest-vn-80810225
2025-01-09 07:34:25,577 - DEBUG - VN ctest-vn-80810225 UUID is a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:25,652 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305, 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-54266114:ctest-vn-80810225, 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-01-09 07:34:25,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7c69592-65fa-4e4f-9653-4650a73e0cfd', 'name': 'ctest-vn-18409305', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'project_id': '42bf6b0afca2429ca65d3aefdad45875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eeef87a8-10e4-407a-8f9f-c2efee009301'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-vn-18409305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-policy-allow-all-57975758']], 'subnet_ipam': [{'subnet_cidr': '62.64.75.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:34:25,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a550a3b8-100b-4912-aa64-df1b4450a23c', 'name': 'ctest-vn-80810225', 'tenant_id': '42bf6b0afca2429ca65d3aefdad45875', 'project_id': '42bf6b0afca2429ca65d3aefdad45875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88b075e4-b36b-40cc-b0dd-d17aa54c1a9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-vn-80810225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-policy-allow-all-57975758']], 'subnet_ipam': [{'subnet_cidr': '83.3.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 07:34:26,024 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-09 07:34:26,322 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-09 07:34:26,350 - DEBUG - Requesting: http://10.0.0.42:8082/domain/31c12e07-fc4b-4ec5-b298-cedca8c582a4
2025-01-09 07:34:26,385 - DEBUG - Requesting: http://10.0.0.42:8082/project/42bf6b0a-fca2-429c-a65d-3aefdad45875
2025-01-09 07:34:26,429 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,442 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,452 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/fb1c3a02-0a7f-4ad1-bd1c-cc1c0257d0c5
2025-01-09 07:34:26,462 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/fb1c3a02-0a7f-4ad1-bd1c-cc1c0257d0c5
2025-01-09 07:34:26,470 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a08120a5-6338-4a7e-b860-bfe46d9c9089
2025-01-09 07:34:26,479 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 07:34:26,479 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,490 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/fb1c3a02-0a7f-4ad1-bd1c-cc1c0257d0c5
2025-01-09 07:34:26,506 - INFO - Verified VN network id 9 for VN a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,506 - INFO - Verifications in API Server for VN ctest-vn-18409305 passed
2025-01-09 07:34:26,506 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,516 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/fb1c3a02-0a7f-4ad1-bd1c-cc1c0257d0c5
2025-01-09 07:34:26,547 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/fb1c3a02-0a7f-4ad1-bd1c-cc1c0257d0c5
2025-01-09 07:34:26,556 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a08120a5-6338-4a7e-b860-bfe46d9c9089
2025-01-09 07:34:26,573 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54266114', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12089514705731341903', 'uuid-lslong': '10832078840973364477'}, 'enable': 'true', 'created': '2025-01-09T07:34:24', 'last-modified': '2025-01-09T07:34:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790399'}
2025-01-09 07:34:26,582 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 07:34:26,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18409305 passed
2025-01-09 07:34:26,582 - DEBUG - ====Verifying policy data for ctest-vn-18409305 in API_Server ======
2025-01-09 07:34:26,582 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-09 07:34:26,589 - DEBUG - Requesting: http://10.0.0.42:8082/domain/31c12e07-fc4b-4ec5-b298-cedca8c582a4
2025-01-09 07:34:26,608 - DEBUG - Requesting: http://10.0.0.42:8082/project/42bf6b0a-fca2-429c-a65d-3aefdad45875
2025-01-09 07:34:26,645 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a7c69592-65fa-4e4f-9653-4650a73e0cfd
2025-01-09 07:34:26,658 - DEBUG - ==>Verifying data for policy with id: 04a65641-a86b-4b07-818b-9835a3f5836a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-policy-allow-all-57975758']
2025-01-09 07:34:26,658 - INFO - VN ctest-vn-18409305 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 07:34:26,658 - DEBUG - Verifying the vn in opserver
2025-01-09 07:34:26,658 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305 virtual network link through opserver 10.0.0.42
2025-01-09 07:34:26,658 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-09 07:34:26,956 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-09 07:34:27,018 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305?flat'}
2025-01-09 07:34:27,018 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-18409305 is found in opserver
2025-01-09 07:34:27,029 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 07:34:27,036 - DEBUG - VRF ids for VN ctest-vn-18409305: {}
2025-01-09 07:34:27,036 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-09 07:34:27,043 - DEBUG - Requesting: http://10.0.0.42:8082/domain/31c12e07-fc4b-4ec5-b298-cedca8c582a4
2025-01-09 07:34:27,059 - DEBUG - Requesting: http://10.0.0.42:8082/project/42bf6b0a-fca2-429c-a65d-3aefdad45875
2025-01-09 07:34:27,095 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,108 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,119 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e6ad76f0-5346-4871-b06f-65e90af0f64d
2025-01-09 07:34:27,127 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e6ad76f0-5346-4871-b06f-65e90af0f64d
2025-01-09 07:34:27,135 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/041ac28a-cec3-4d34-9f5e-77e054ff23d6
2025-01-09 07:34:27,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 07:34:27,143 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,159 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e6ad76f0-5346-4871-b06f-65e90af0f64d
2025-01-09 07:34:27,177 - INFO - Verified VN network id 10 for VN a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,177 - INFO - Verifications in API Server for VN ctest-vn-80810225 passed
2025-01-09 07:34:27,177 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,188 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e6ad76f0-5346-4871-b06f-65e90af0f64d
2025-01-09 07:34:27,196 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e6ad76f0-5346-4871-b06f-65e90af0f64d
2025-01-09 07:34:27,206 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/041ac28a-cec3-4d34-9f5e-77e054ff23d6
2025-01-09 07:34:27,220 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-80810225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54266114', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11912201025333446930', 'uuid-lslong': '12278183792322060860'}, 'enable': 'true', 'created': '2025-01-09T07:34:25', 'last-modified': '2025-01-09T07:34:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306545'}
2025-01-09 07:34:27,227 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 07:34:27,227 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80810225 passed
2025-01-09 07:34:27,227 - DEBUG - ====Verifying policy data for ctest-vn-80810225 in API_Server ======
2025-01-09 07:34:27,227 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-09 07:34:27,233 - DEBUG - Requesting: http://10.0.0.42:8082/domain/31c12e07-fc4b-4ec5-b298-cedca8c582a4
2025-01-09 07:34:27,246 - DEBUG - Requesting: http://10.0.0.42:8082/project/42bf6b0a-fca2-429c-a65d-3aefdad45875
2025-01-09 07:34:27,292 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a550a3b8-100b-4912-aa64-df1b4450a23c
2025-01-09 07:34:27,303 - DEBUG - ==>Verifying data for policy with id: 04a65641-a86b-4b07-818b-9835a3f5836a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54266114', 'ctest-policy-allow-all-57975758']
2025-01-09 07:34:27,303 - INFO - VN ctest-vn-80810225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 07:34:27,303 - DEBUG - Verifying the vn in opserver
2025-01-09 07:34:27,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-80810225 virtual network link through opserver 10.0.0.42
2025-01-09 07:34:27,303 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-09 07:34:27,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-80810225', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-80810225?flat'}
2025-01-09 07:34:27,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54266114:ctest-vn-80810225 is found in opserver
2025-01-09 07:34:27,327 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 07:34:27,332 - DEBUG - VRF ids for VN ctest-vn-80810225: {}
2025-01-09 07:34:27,392 - DEBUG - Services list from nova: [