2024-11-08 22:40:55,079 - INFO - Domain Default found not creating
2024-11-08 22:40:55,249 - INFO - Project ctest-TestBasicPolicy-59481111 not found, creating it
2024-11-08 22:40:55,726 - INFO - Created Project:ctest-TestBasicPolicy-59481111, ID : 20659ee9-aeae-474d-a82d-71e428d445b1
2024-11-08 22:40:57,183 - INFO - ================================================================================
2024-11-08 22:40:57,183 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 22:40:57,183 - 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
2024-11-08 22:40:57,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with
2024-11-08 22:40:57,437 - INFO - Initial checks done. Running the testcase now
2024-11-08 22:40:57,437 - INFO -
2024-11-08 22:40:58,012 - DEBUG - Response for create_network : {'network': {'id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'name': 'ctest-vn-87744720', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-87744720'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 22:40:58,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71a79c6-4e29-4339-a0ae-a438a57efc3b', 'name': '', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'network_id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'ip_version': 4, 'cidr': '171.87.183.0/26', 'allocation_pools': [{'start': '171.87.183.2', 'end': '171.87.183.62'}], 'gateway_ip': '171.87.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.87.183.2', 'tags': [], 'project_id': '20659ee9aeae474da82d71e428d445b1'}}
2024-11-08 22:40:58,250 - INFO - Created VN ctest-vn-87744720
2024-11-08 22:40:58,311 - DEBUG - VN ctest-vn-87744720 UUID is 55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:40:58,670 - DEBUG - Response for create_network : {'network': {'id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'name': 'ctest-vn-41824046', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-41824046'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 22:40:58,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '144de145-8d9a-4514-8a00-b1e4aaceebf8', 'name': '', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'network_id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'ip_version': 4, 'cidr': '157.203.136.64/26', 'allocation_pools': [{'start': '157.203.136.66', 'end': '157.203.136.126'}], 'gateway_ip': '157.203.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.203.136.66', 'tags': [], 'project_id': '20659ee9aeae474da82d71e428d445b1'}}
2024-11-08 22:40:58,861 - INFO - Created VN ctest-vn-41824046
2024-11-08 22:40:58,919 - DEBUG - VN ctest-vn-41824046 UUID is cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:40:59,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720, 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-59481111:ctest-vn-41824046, 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]
2024-11-08 22:40:59,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55a49a63-ff27-42cc-82eb-e2ed786a5946', 'name': 'ctest-vn-87744720', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71a79c6-4e29-4339-a0ae-a438a57efc3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-87744720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']], 'subnet_ipam': [{'subnet_cidr': '171.87.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 22:40:59,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1', 'name': 'ctest-vn-41824046', 'tenant_id': '20659ee9aeae474da82d71e428d445b1', 'project_id': '20659ee9aeae474da82d71e428d445b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['144de145-8d9a-4514-8a00-b1e4aaceebf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-vn-41824046'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']], 'subnet_ipam': [{'subnet_cidr': '157.203.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 22:40:59,791 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-08 22:41:00,087 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-08 22:41:00,116 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87
2024-11-08 22:41:00,130 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1
2024-11-08 22:41:00,209 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,226 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,239 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774
2024-11-08 22:41:00,246 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774
2024-11-08 22:41:00,254 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5b93c099-853d-4a78-a950-d15dee67cb3b
2024-11-08 22:41:00,260 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 22:41:00,260 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,273 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774
2024-11-08 22:41:00,290 - INFO - Verified VN network id 9 for VN 55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,290 - INFO - Verifications in API Server for VN ctest-vn-87744720 passed
2024-11-08 22:41:00,290 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,302 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774
2024-11-08 22:41:00,310 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/72b7bbc6-de10-4e0c-b23a-ca509eb06774
2024-11-08 22:41:00,317 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5b93c099-853d-4a78-a950-d15dee67cb3b
2024-11-08 22:41:00,331 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59481111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6171227143677625036', 'uuid-lslong': '9433883354012997958'}, 'enable': 'true', 'created': '2024-11-08T22:40:57', 'last-modified': '2024-11-08T22:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003452'}
2024-11-08 22:41:00,337 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 22:41:00,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87744720 passed
2024-11-08 22:41:00,338 - DEBUG - ====Verifying policy data for ctest-vn-87744720 in API_Server ======
2024-11-08 22:41:00,338 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-08 22:41:00,342 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87
2024-11-08 22:41:00,354 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1
2024-11-08 22:41:00,436 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/55a49a63-ff27-42cc-82eb-e2ed786a5946
2024-11-08 22:41:00,449 - DEBUG - ==>Verifying data for policy with id: 4aae9820-5d14-484c-a45d-b1c4fa55f9fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']
2024-11-08 22:41:00,449 - INFO - VN ctest-vn-87744720 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 22:41:00,449 - DEBUG - Verifying the vn in opserver
2024-11-08 22:41:00,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720 virtual network link through opserver 10.0.0.23
2024-11-08 22:41:00,450 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-08 22:41:00,742 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-08 22:41:00,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720?flat'}
2024-11-08 22:41:00,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-87744720 is found in opserver
2024-11-08 22:41:00,813 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 22:41:00,818 - DEBUG - VRF ids for VN ctest-vn-87744720: {}
2024-11-08 22:41:00,818 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-08 22:41:00,825 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87
2024-11-08 22:41:00,842 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1
2024-11-08 22:41:00,932 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:00,947 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:00,960 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0
2024-11-08 22:41:00,971 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0
2024-11-08 22:41:00,979 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5e3d25ec-6d8e-4e15-95d9-ddf8a21ff7d2
2024-11-08 22:41:00,987 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 22:41:00,987 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:01,004 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0
2024-11-08 22:41:01,031 - INFO - Verified VN network id 10 for VN cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:01,031 - INFO - Verifications in API Server for VN ctest-vn-41824046 passed
2024-11-08 22:41:01,032 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:01,045 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0
2024-11-08 22:41:01,055 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6b29fd36-5b03-4892-a3a7-4685c4c178d0
2024-11-08 22:41:01,068 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5e3d25ec-6d8e-4e15-95d9-ddf8a21ff7d2
2024-11-08 22:41:01,081 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59481111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14937590218642639044', 'uuid-lslong': '12268198731581378209'}, 'enable': 'true', 'created': '2024-11-08T22:40:58', 'last-modified': '2024-11-08T22:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.512876'}
2024-11-08 22:41:01,088 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 22:41:01,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41824046 passed
2024-11-08 22:41:01,088 - DEBUG - ====Verifying policy data for ctest-vn-41824046 in API_Server ======
2024-11-08 22:41:01,088 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-08 22:41:01,094 - DEBUG - Requesting: http://10.0.0.23:8082/domain/269c39c4-0c8c-44d1-9318-3f8c05bf5f87
2024-11-08 22:41:01,108 - DEBUG - Requesting: http://10.0.0.23:8082/project/20659ee9-aeae-474d-a82d-71e428d445b1
2024-11-08 22:41:01,203 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf4cfb29-3e8b-48c4-aa41-65bf25ce4ea1
2024-11-08 22:41:01,216 - DEBUG - ==>Verifying data for policy with id: 4aae9820-5d14-484c-a45d-b1c4fa55f9fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-59481111', 'ctest-policy-allow-all-67995853']
2024-11-08 22:41:01,216 - INFO - VN ctest-vn-41824046 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 22:41:01,216 - DEBUG - Verifying the vn in opserver
2024-11-08 22:41:01,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046 virtual network link through opserver 10.0.0.23
2024-11-08 22:41:01,217 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-08 22:41:01,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046?flat'}
2024-11-08 22:41:01,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59481111:ctest-vn-41824046 is found in opserver
2024-11-08 22:41:01,242 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 22:41:01,248 - DEBUG - VRF ids for VN ctest-vn-41824046: {}
2024-11-08 22:41:01,306 - DEBUG - Services list from nova: [