2025-08-04 10:06:35,881 - INFO - Domain Default found not creating
2025-08-04 10:06:36,060 - INFO - Project ctest-TestBasicPolicy-20101003 not found, creating it
2025-08-04 10:06:36,575 - INFO - Created Project:ctest-TestBasicPolicy-20101003, ID : d4f6160d-3057-496b-850c-7779082385e1
2025-08-04 10:06:38,256 - INFO - ================================================================================
2025-08-04 10:06:38,256 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-04 10:06:38,256 - 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-08-04 10:06:38,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-04 10:06:38,515 - INFO - Initial checks done. Running the testcase now
2025-08-04 10:06:38,515 - INFO -
2025-08-04 10:06:39,108 - DEBUG - Response for create_network : {'network': {'id': '5cb5b75c-fb1e-4901-b29b-ed82341d9a04', 'name': 'ctest-vn-97293957', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'project_id': 'd4f6160d3057496b850c7779082385e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-vn-97293957'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 10:06:39,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6ec81e3-bc20-4183-ba13-07ec05089d6b', 'name': '', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'network_id': '5cb5b75c-fb1e-4901-b29b-ed82341d9a04', 'ip_version': 4, 'cidr': '131.103.231.128/26', 'allocation_pools': [{'start': '131.103.231.130', 'end': '131.103.231.190'}], 'gateway_ip': '131.103.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.103.231.130', 'tags': [], 'project_id': 'd4f6160d3057496b850c7779082385e1'}}
2025-08-04 10:06:39,361 - INFO - Created VN ctest-vn-97293957
2025-08-04 10:06:39,417 - DEBUG - VN ctest-vn-97293957 UUID is 5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:39,771 - DEBUG - Response for create_network : {'network': {'id': '9bcbee25-1300-43cf-9eb9-43e5389dd697', 'name': 'ctest-vn-47286266', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'project_id': 'd4f6160d3057496b850c7779082385e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-vn-47286266'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 10:06:39,952 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe4b46a9-882c-4285-a75d-be8524fb6358', 'name': '', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'network_id': '9bcbee25-1300-43cf-9eb9-43e5389dd697', 'ip_version': 4, 'cidr': '104.206.139.128/26', 'allocation_pools': [{'start': '104.206.139.130', 'end': '104.206.139.190'}], 'gateway_ip': '104.206.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.206.139.130', 'tags': [], 'project_id': 'd4f6160d3057496b850c7779082385e1'}}
2025-08-04 10:06:39,979 - INFO - Created VN ctest-vn-47286266
2025-08-04 10:06:40,032 - DEBUG - VN ctest-vn-47286266 UUID is 9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:40,176 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957, 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-20101003:ctest-vn-47286266, 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-08-04 10:06:40,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cb5b75c-fb1e-4901-b29b-ed82341d9a04', 'name': 'ctest-vn-97293957', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'project_id': 'd4f6160d3057496b850c7779082385e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6ec81e3-bc20-4183-ba13-07ec05089d6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-vn-97293957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-policy-allow-all-04331559']], 'subnet_ipam': [{'subnet_cidr': '131.103.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 10:06:40,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bcbee25-1300-43cf-9eb9-43e5389dd697', 'name': 'ctest-vn-47286266', 'tenant_id': 'd4f6160d3057496b850c7779082385e1', 'project_id': 'd4f6160d3057496b850c7779082385e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe4b46a9-882c-4285-a75d-be8524fb6358'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-vn-47286266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-policy-allow-all-04331559']], 'subnet_ipam': [{'subnet_cidr': '104.206.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 10:06:40,957 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 10:06:41,257 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 10:06:41,295 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d16048ad-2f86-4210-b688-2a095b65d0e1
2025-08-04 10:06:41,315 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f6160d-3057-496b-850c-7779082385e1
2025-08-04 10:06:41,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,419 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,432 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7302ca0c-8d5a-43dc-9720-c22f41ab2254
2025-08-04 10:06:41,444 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7302ca0c-8d5a-43dc-9720-c22f41ab2254
2025-08-04 10:06:41,456 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/34f6ccce-6b39-4f98-b7c3-e4ac626f2f8b
2025-08-04 10:06:41,469 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 10:06:41,469 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,481 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7302ca0c-8d5a-43dc-9720-c22f41ab2254
2025-08-04 10:06:41,500 - INFO - Verified VN network id 11 for VN 5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,500 - INFO - Verifications in API Server for VN ctest-vn-97293957 passed
2025-08-04 10:06:41,500 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7302ca0c-8d5a-43dc-9720-c22f41ab2254
2025-08-04 10:06:41,522 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7302ca0c-8d5a-43dc-9720-c22f41ab2254
2025-08-04 10:06:41,532 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/34f6ccce-6b39-4f98-b7c3-e4ac626f2f8b
2025-08-04 10:06:41,550 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20101003', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6680447232251939073', 'uuid-lslong': '12870141503617210884'}, 'enable': 'true', 'created': '2025-08-04T10:06:39', 'last-modified': '2025-08-04T10:06:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068529'}
2025-08-04 10:06:41,560 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 10:06:41,560 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97293957 passed
2025-08-04 10:06:41,560 - DEBUG - ====Verifying policy data for ctest-vn-97293957 in API_Server ======
2025-08-04 10:06:41,560 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 10:06:41,569 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d16048ad-2f86-4210-b688-2a095b65d0e1
2025-08-04 10:06:41,586 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f6160d-3057-496b-850c-7779082385e1
2025-08-04 10:06:41,664 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5cb5b75c-fb1e-4901-b29b-ed82341d9a04
2025-08-04 10:06:41,680 - DEBUG - ==>Verifying data for policy with id: b6536619-f365-4182-8e60-c6fde823681f, fqn: ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-policy-allow-all-04331559']
2025-08-04 10:06:41,680 - INFO - VN ctest-vn-97293957 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 10:06:41,680 - DEBUG - Verifying the vn in opserver
2025-08-04 10:06:41,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957 virtual network link through opserver 10.0.0.50
2025-08-04 10:06:41,680 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 10:06:41,979 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 10:06:42,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957?flat'}
2025-08-04 10:06:42,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-97293957 is found in opserver
2025-08-04 10:06:42,072 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 10:06:42,082 - DEBUG - VRF ids for VN ctest-vn-97293957: {}
2025-08-04 10:06:42,082 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 10:06:42,090 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d16048ad-2f86-4210-b688-2a095b65d0e1
2025-08-04 10:06:42,104 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f6160d-3057-496b-850c-7779082385e1
2025-08-04 10:06:42,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,201 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,215 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e7bcc27-02ea-4f02-a460-05bfc0379704
2025-08-04 10:06:42,227 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e7bcc27-02ea-4f02-a460-05bfc0379704
2025-08-04 10:06:42,238 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b256d269-3a5e-4c26-bbd9-9888ab4c911c
2025-08-04 10:06:42,248 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 10:06:42,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,265 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e7bcc27-02ea-4f02-a460-05bfc0379704
2025-08-04 10:06:42,288 - INFO - Verified VN network id 12 for VN 9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,288 - INFO - Verifications in API Server for VN ctest-vn-47286266 passed
2025-08-04 10:06:42,288 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e7bcc27-02ea-4f02-a460-05bfc0379704
2025-08-04 10:06:42,315 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1e7bcc27-02ea-4f02-a460-05bfc0379704
2025-08-04 10:06:42,326 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b256d269-3a5e-4c26-bbd9-9888ab4c911c
2025-08-04 10:06:42,345 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-47286266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20101003', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11226328339151078351', 'uuid-lslong': '11437247380460525207'}, 'enable': 'true', 'created': '2025-08-04T10:06:39', 'last-modified': '2025-08-04T10:06:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.580158'}
2025-08-04 10:06:42,356 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 10:06:42,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47286266 passed
2025-08-04 10:06:42,357 - DEBUG - ====Verifying policy data for ctest-vn-47286266 in API_Server ======
2025-08-04 10:06:42,357 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-04 10:06:42,367 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d16048ad-2f86-4210-b688-2a095b65d0e1
2025-08-04 10:06:42,384 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f6160d-3057-496b-850c-7779082385e1
2025-08-04 10:06:42,462 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9bcbee25-1300-43cf-9eb9-43e5389dd697
2025-08-04 10:06:42,473 - DEBUG - ==>Verifying data for policy with id: b6536619-f365-4182-8e60-c6fde823681f, fqn: ['default-domain', 'ctest-TestBasicPolicy-20101003', 'ctest-policy-allow-all-04331559']
2025-08-04 10:06:42,473 - INFO - VN ctest-vn-47286266 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 10:06:42,473 - DEBUG - Verifying the vn in opserver
2025-08-04 10:06:42,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-47286266 virtual network link through opserver 10.0.0.50
2025-08-04 10:06:42,473 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-04 10:06:42,486 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-47286266', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-47286266?flat'}
2025-08-04 10:06:42,486 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20101003:ctest-vn-47286266 is found in opserver
2025-08-04 10:06:42,498 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 10:06:42,504 - DEBUG - VRF ids for VN ctest-vn-47286266: {}
2025-08-04 10:06:42,574 - DEBUG - Services list from nova: [